React-native-navigation: How do I run playground code?

Created on 11 Feb 2019  ·  4Comments  ·  Source: wix/react-native-navigation

There is no installation guide for this.
I tried in my terminal:
cd playground
npm install

then 'react-native run-ios'
but this won't work.

I think I might be doing something wrong. Does anyone know the installation guide to run the playground code?

questiostack overflow

All 4 comments

Did you follow the Playground instructions?

If you did, try to start over and clone the master branch instead.

git clone -b master [email protected]:wix/react-native-navigation.git

And then follow the rest of the instructions.

@andertun I followed the Playground instructions and that worked for me thank you very much. However, it only shows how to run using xcode. What about android?

I'm running npm start after npm install but it fails with this error:
Command failed: lsof -t -i :8081 \| xargs kill \|\| true.
Anyone knows how to run it on Android?

Update: To be able to run in android I opened react-native-navigation\scripts and changed the run function:

function run() {
  exec.execSync(`node ./node_modules/react-native/local-cli/cli.js start`);
} 

After this, I ran npm start, opened the project in Android Studio and ran it in my emulator successfully.

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the react-native-navigation tag.

Was this page helpful?
0 / 5 - 0 ratings