React-Native Client: Error with Android
See original GitHub issueHi @nicolodavis! 👋
I’ve been working on a React-Native version of matchimals.fun over the past few weeks! In the process, I discovered a bug that we’ve ran into before.
When we were initially writing the React-Native Client (#128)– we found that for some strange reason for...of
loops weren’t getting transpiled properly– and while iOS is okay– Android doesn’t know how to handle them.

It looks like these lines didn’t exist when we first made the RN Client but need to be changed to regular for
loops:
https://github.com/google/boardgame.io/blob/master/src/core/events.js#L28
https://github.com/google/boardgame.io/blob/master/src/core/events.js#L42
I can make the updates and submit a PR if that sounds like an okay change to make.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
[Android] Client was already initialized error · Issue #40 - GitHub
The React Native SDK will no longer allow configure to be called if the SDK is already initialized. It does not error and...
Read more >Error when trying to run my React Native app on Android
I pasted my existing assets, styles, the source JS-files and the package. json file into the new project, ran npm install and then...
Read more >5 common errors found in a React Native app (using Expo)
5 common errors found while creating a React Native mobile app · 1. ERROR MESSAGE · 2. PLATFORM DIFFERENCES · 3. IMAGES ·...
Read more >Troubleshooting - React Native
If you run into issue where executing npm run android on macOS throws the above error, try to run sudo chmod +x android/gradlew...
Read more >React Native for Android development on Windows
This guide will help you to get started using React Native on Windows to create a cross-platform app that will work on Android...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think this should no longer be a problem with newer versions of
create-react-native-app
. Feel free to re-open if there is anything we should be doing on our end.👍 Excellent. My workaround is good enough for now and should work for anyone else who comes across this issue in the meantime!