Skip to content

Conversation

@robwalkerco
Copy link
Contributor

@robwalkerco robwalkerco commented Sep 19, 2022

Description

This PR updates the example app to a more recent version, and fixes an issue that was causing the tests to fail on Android when using RN version 0.69.x.

Closes #119

I attempted to get the Android CI tests to run, but ran into issues with the Java Version emulator compatibility, so I've disabled the Android CI again for now so that we can fix the Android issues in the library as a priority. Android tests can be run locally for the time being.

I've tried to update to 0.70.1, but the tests fail to run on Android.

It seems that our current monkey patching method doesen’t work with RN 0.70.0.
I guess when we import React in Owl it’s a different React that the app gets (though I’ve checked the version of both and they are the same).

Looking at why-did-you-render for inspiration, and they get the user to add some init code to the very start of their app index.js file that inits the project and passes in React (Setup docs).

We may want to test out something similar. It would make the initial setup slightly more involved but would guarantee we are patching the correct instance of React. This would be a breaking change, unless we can find another way to get it to work.

@robwalkerco robwalkerco force-pushed the chore/update-example-RN-version branch from d7da2f4 to 155da0b Compare September 19, 2022 10:11
@robwalkerco robwalkerco marked this pull request as ready for review September 19, 2022 20:51
@robwalkerco robwalkerco requested a review from manosim September 20, 2022 07:27
@robwalkerco robwalkerco requested a review from ceceppa September 20, 2022 10:17
@robwalkerco robwalkerco merged commit 3aaa7bb into main Sep 28, 2022
@robwalkerco robwalkerco deleted the chore/update-example-RN-version branch September 28, 2022 15:37
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

Successfully merging this pull request may close these issues.

Timeout - Async callback was not invoked within the 30000 ms timeout

4 participants