Skip to content

Commit

Permalink
More UIWebview cleanup (#1045)
Browse files Browse the repository at this point in the history
* update postinstall

* fix unit tests
  • Loading branch information
Bruno Barbieri authored Aug 29, 2019
1 parent 0be35eb commit dc0028a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/util/testSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jest.mock('react-native-keychain', () => ({ getSupportedBiometryType: () => Prom
jest.mock('react-native-share', () => 'RNShare');
jest.mock('react-native-fabric', () => 'Fabric');
jest.mock('react-native-branch', () => 'RNBranch');
jest.mock('react-native-device-info', () => 'DeviceInfo');
jest.mock('react-native-search-api', () => 'SearchApi');
jest.mock('react-native-background-timer', () => 'RNBackgroundTimer');
jest.mock('react-native-camera', () => ({
Expand Down
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"react-native-button": "github:brunobar79/react-native-button#fd79f4d6c8ced4086ba6e3021b6ed6d4a3e19cf7",
"react-native-camera": "2.10.0",
"react-native-crypto": "2.1.2",
"react-native-device-info": "0.29.0",
"react-native-device-info": "github:react-native-community/react-native-device-info#a3cff963641280326b0b1205f1f6b56a537355e3",
"react-native-elevated-view": "0.0.6",
"react-native-emoji": "1.3.1",
"react-native-fabric": "0.5.2",
Expand Down
9 changes: 5 additions & 4 deletions scripts/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ else
fi

echo "14. Remove UIWebview deps"
rm -rf node_modules/Libraries/React.xcodeproj/React/Views/RNCWebView.h
rm -rf node_modules/Libraries/React.xcodeproj/React/Views/RNCWebView.m
rm -rf node_modules/Libraries/React.xcodeproj/React/Views/RNCWebViewManager.h
rm -rf node_modules/Libraries/React.xcodeproj/React/Views/RNCWebViewManager.m
rm -rf node_modules/Libraries/React.xcodeproj/React/Views/RCTWebView.h
rm -rf node_modules/Libraries/React.xcodeproj/React/Views/RCTWebView.h
rm -rf node_modules/Libraries/React.xcodeproj/React/Views/RCTWebView.m
rm -rf node_modules/Libraries/React.xcodeproj/React/Views/RCTWebViewManager.h
rm -rf node_modules/Libraries/React.xcodeproj/React/Views/RCTWebViewManager.m

0 comments on commit dc0028a

Please sign in to comment.