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

Error on android: 'Only the original thread that created a view hierarchy can touch its views' #19

Open
alejandrocerda opened this issue Dec 17, 2020 · 1 comment

Comments

@alejandrocerda
Copy link

alejandrocerda commented Dec 17, 2020

I have an issue setting up wootric in some android devices.
The setup is the same as in the main page and it works correctly in iOS.

The error message is as follows
only the original thread that created a view hierarchy can touch its views.

The error happens on the function to initialize wootric:
RNWootric.configureWithClientID(clientId, accountToken);

The device where this issue happened is a Samsung Galaxy Tab A with Android version 10.

It seems to work correctly in some android devices. I tested using an android simulator running a 'Pixel 2 API 28` with Android 9.0 and it doesn't present the same issue.

image

@jorgetinoco
Copy link

jorgetinoco commented Jul 29, 2021

We still have this issue.

I updated to wootric/react-native-wootric version 1.4.1 and the app handles the exception however it still logs the exact same error:

 E/WOOTRIC: android.view.ViewRootImpl$CalledFromWrongThreadException: 
Only the original thread that created a view hierarchy can touch its views.

I'm using react v 16.13.1 and react-native 0.63.3. Simulator with Android 11 and Device with Android 10 have the same issue

The exact same configuration works for iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants