question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React-Native Client: Error with Android

See original GitHub issue

Hi @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.

screen shot 2018-06-04 at 8 57 35 pm

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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolodaviscommented, Apr 14, 2019

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.

0reactions
chrisheningercommented, Jun 16, 2018

👍 Excellent. My workaround is good enough for now and should work for anyone else who comes across this issue in the meantime!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found