如何从反应原生的示例链接到src?

时间:2016-07-18 07:53:00

标签: reactjs react-native

我看到这个链接
https://github.com/skv-headless/react-native-scrollable-tab-view/blob/master/examples/FacebookTabsExample/package.json#L11
但它复制/粘贴到node_modules,当我想在src中更改时,你应该总是做npm i? 是否有其他方式 问题https://github.com/skv-headless/react-native-scrollable-tab-view/issues/357

1 个答案:

答案 0 :(得分:0)

据我所知rn(守望者)有符号链接问题所以临时解决方案

node_modules / react-native / packager / packager.sh --projectRoots / Users / butuzgol / Playground / react-native-scrollable-tab-view /,/ Users / butuzgol / Playground / react-native-scrollable-tab-视图/实例

并在

var ScrollableTabView = require('../ index');