2017-07-24 198 views

回答

0

通過遵循React Native指南,我能夠從一個全新的快速項目中獲得安裝的子規格210這樣的pod文件:

target 'testpods' do 
    # Your 'node_modules' directory is probably in the root of your project, 
    # but if not, adjust the `:path` accordingly 
    pod 'React', :path => './node_modules/react-native', :subspecs => [ 
    'Core', 
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43 
    'RCTText', 
    'RCTNetwork', 
    'RCTWebSocket', # needed for debugging 
    # Add any other subspecs you want to use in your project 
    ] 
    # Explicitly include Yoga if you are using RN >= 0.42.0 
    pod "Yoga", :path => "./node_modules/react-native/ReactCommon/yoga" 
end