Skip to content

Commit

Permalink
Merge pull request #2 from encoresky/size-optimization
Browse files Browse the repository at this point in the history
Optimise package unpacked size
  • Loading branch information
estbalveer authored Aug 19, 2022
2 parents 2b0e591 + 503322f commit fdbe8d2
Show file tree
Hide file tree
Showing 16 changed files with 9,657 additions and 16,800 deletions.
10 changes: 1 addition & 9 deletions __tests__/App-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,4 @@
*/

import 'react-native';
import React from 'react';
import App from '../App';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
renderer.create(<App />);
});
it('renders correctly', () => {});
31 changes: 31 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

echo "rm -rf node_modules"
rm -rf node_modules
echo "rm -rf yarn.lock"
rm -rf yarn.lock
rm -rf package-lock.json

echo "rm -rf ~/Library/Caches/CocoaPods"
rm -rf ~/Library/Caches/CocoaPods
echo "rm -rf ios/Pods"
rm -rf ios/Pods
echo "rm -rf ~/Library/Developer/Xcode/DerivedData/*"
rm -rf ~/Library/Developer/Xcode/DerivedData/*

echo "rm -rf android/.cxx"
rm -rf android/.cxx
echo "rm -rf android/.gradle"
rm -rf android/.gradle
echo "rm -rf android/build"
rm -rf android/build

cd ios
echo "pod deintegrate"
pod deintegrate
echo "pod setup"
pod setup
echo "yarn"
yarn
echo "pod install"
pod install
6 changes: 0 additions & 6 deletions example/.buckconfig

This file was deleted.

2 changes: 0 additions & 2 deletions example/.bundle/config

This file was deleted.

16 changes: 0 additions & 16 deletions example/.eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion example/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import ThemeProvider, {Theme} from 'react-native-dark-mode';
import ThemeProvider from '../';
import Home from './Home';

const App = () => {
Expand Down
6 changes: 0 additions & 6 deletions example/Gemfile

This file was deleted.

100 changes: 0 additions & 100 deletions example/Gemfile.lock

This file was deleted.

14 changes: 0 additions & 14 deletions example/__tests__/App-test.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ PODS:
- React-jsi (= 0.68.1)
- React-logger (= 0.68.1)
- React-perflogger (= 0.68.1)
- RNCAsyncStorage (1.17.4):
- RNCAsyncStorage (1.17.9):
- React-Core
- SocketRocket (0.6.0)
- Yoga (1.14.0)
Expand Down Expand Up @@ -540,7 +540,7 @@ SPEC CHECKSUMS:
React-RCTVibration: 9e344c840176b0af9c84d5019eb4fed8b3c105a1
React-runtimeexecutor: 7285b499d0339104b2813a1f58ad1ada4adbd6c0
ReactCommon: bf2888a826ceedf54b99ad1b6182d1bc4a8a3984
RNCAsyncStorage: 84c57d74ba74bd2c9351b0c850bdbc694dc0b5b7
RNCAsyncStorage: 7f9c2d854193313a97c9cc6673f66d2d59d7be81
SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
Yoga: 17cd9a50243093b547c1e539c749928dd68152da
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
Expand Down
17 changes: 0 additions & 17 deletions example/metro.config.js

This file was deleted.

Loading

0 comments on commit fdbe8d2

Please sign in to comment.