Start Development Server
In root directory, we need to start React Native development server.
(JS_DIR=pwd/ReactComponent; cd Pods/React; npm run start -- --root $JS_DIR)
This command will start up a React Native development server within our CocoaPods dependency to build our bundled script. The --root option indicates the root of your React Native apps – this will be our ReactComponents directory containing the single index.ios.js file. This running server will package up the index.ios.bundle file accessible via http://localhost:8081/index.ios.bundle.
I try to start development server by npm run start -- -- root $JS_DIR/npm run start --root $JS_DIR in my objective-c project, but it's not work. The npm throw a error message.
I try to start development server by
npm run start -- -- root $JS_DIR
/npm run start --root $JS_DIR
in my objective-c project, but it's not work. The npm throw a error message.Any other way to start a development server?