From 96756f18e3253ac5425de180949a29e626ad5fe2 Mon Sep 17 00:00:00 2001 From: Troy Zhang Date: Fri, 7 Jul 2017 00:08:06 +0800 Subject: [PATCH] Add document for integration with existing ios app --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index f58648c..392c437 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,23 @@ ``` +### Integration With Existing Apps (`iOS`) +The `Podfile` will like below: +``` ruby +platform :ios, '8.0' +target 'YourTarget' do + pod 'React', :path => '../YOUR_REACT_NATIVE_PROJECT/node_modules/react-native', :subspecs => [ + 'Core', + ... + ] + pod 'Picker', :path => '../YOUR_REACT_NATIVE_PROJECT/node_modules/react-native-picker' +end +``` +After you have updated the `Podfile` of the existing app, you can install `react-native-picker` like below: +``` bash +$ pod install +``` + ### Notice #### support two modes: -- 2.26.2