fork本地反应本机(与本机模块)组件

时间:2018-06-03 07:23:46

标签: java android react-native react-native-android react-native-ios

im new with react native。

有一个项目,helloworld

root/
    /android/
    /ios/
    /node_modules/
                 /githubLib1/
                            /android/...
                            /ios/...
                            ...
    /src/
...

所以我的问题是如何将'githublib1'分叉到'githublib2'并将其置于根级别然后连接到本机?

我确实复制并放在root上 但当我做'react-native link githublib2'时,引擎想要使用/ node_modules /仅用于搜索

所以对于andriod我这样做了

rootProject.name = 'heeloworld1'

include ':githublib2'
project(':githublib2').projectDir = new File(rootProject.projectDir,         '../githublib2/android')

include ':app'

请让我知道,也许我需要使用另一种做法

0 个答案:

没有答案