Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor issues on Android #18185

Closed
giuliopaci opened this issue Mar 4, 2018 · 3 comments
Closed

Minor issues on Android #18185

giuliopaci opened this issue Mar 4, 2018 · 3 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@giuliopaci
Copy link

I am trying to study react-native directly on my phone. I am able to perform basic development on the phone, but I have to workaround a couple of annoying issues.

Environment

Environment:
OS: android
Node: 8.9.4
Yarn: 1.3.2
npm: 4.6.1
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.0 => 0.52.0

Expected Behavior

create-react-native-app applicationname should work and the created application project should be usable.

Actual Behavior

  1. the creation procedure fails with the following error:
ngrok - error unpacking binary { Error: ENOENT: no such file or directory, open '/data/data/com.termux/files/home/test2/pippo/node_modules/@expo/ngrok/bin/ngrok-stable-android-arm64.zip'
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/data/data/com.termux/files/home/test2/pippo/node_modules/@expo/ngrok/bin/ngrok-stable-android-arm64.zip' }

I was able to skip this issue by just copying ngrok-stable-linux-arm.zip into /data/data/com.termux/files/home/test2/pippo/node_modules/@expo/ngrok/bin/ngrok-stable-android-arm64.zip in a continuous loop during the creation process;
2. Created project is not working because os.cpus() is undefined. I was able to workaround this by patching node_modules/metro/src/lib/getMaxWorkers.js and node_modules/metro/src/lib/getMaxWorkers.js.flow with a change like const cores = (os.cpus() || {length: 1}).length;.

Steps to Reproduce

On an Android system with Oreo, install Termux, then in Termux install npm, patch npm as described in github.com/termux/termux-packages/issues/1798, use npm to install npm version 4.6.1, use npm 4.6.1 to install react-native, try to create a new project.

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest stable release?

Thank you for your contributions.

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added Old Version Ran Commands One of our bots successfully processed a command. labels Mar 5, 2018
@giuliopaci
Copy link
Author

giuliopaci commented Mar 6, 2018 via email

@hramos hramos added the Android label Mar 8, 2018
@react-native-bot
Copy link
Collaborator

Thanks for reporting this! The CRNA tool is maintained by the community and it has its own repo. Do you mind reporting your issue at https://github.com/react-community/create-react-native-app ? Thanks!

@facebook facebook locked as resolved and limited conversation to collaborators Mar 13, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants