我从一个create-react-native应用开始。然后,我想添加一个依赖项。所以,我运行了react-native link
`react-native link` can not be used in Create React Native App projects.See https://github.com/react-community/create-react-native-app/blob/master
在我的iOS应用程序中,它包括React库及其依赖项,在启动时有以下代码:
NSURL *jsCodeLocation = [NSURL URLWithString:@"http://localhostEnsure the following: - Node server is running and available on the same network - run 'npm start' from react-nativecorrectly set in AppDelegate -