Skip to content

Commit 0770df0

Browse files
committed
iOS demo优化。
1 parent 01c85b1 commit 0770df0

File tree

5 files changed

+341
-160
lines changed

5 files changed

+341
-160
lines changed

example/ios/Podfile

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,23 @@
1-
platform :ios, '9.0'
1+
2+
require_relative '../node_modules/react-native/scripts/react_native_pods'
23
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
34

5+
platform :ios, '10.0'
6+
47
target 'example' do
5-
# Pods for example
6-
pod 'React', :path => '../node_modules/react-native/'
7-
pod 'React-Core', :path => '../node_modules/react-native/React'
8-
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
9-
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
10-
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
11-
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
12-
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
13-
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
14-
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
15-
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
16-
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
17-
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
18-
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'
19-
20-
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
21-
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
22-
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
23-
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
24-
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
25-
26-
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
27-
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
28-
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
29-
30-
use_native_modules!
8+
config = use_native_modules!
9+
10+
use_react_native!(:path => config["reactNativePath"])
11+
12+
13+
# Enables Flipper.
14+
#
15+
# Note that if you have use_frameworks! enabled, Flipper will not work and
16+
# you should disable these next few lines.
17+
# use_flipper!
18+
# post_install do |installer|
19+
# flipper_post_install(installer)
20+
# end
3121
end
22+
23+

0 commit comments

Comments
 (0)