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.

Upgrade to 0.66.2?

See original GitHub issue

I just found out about react-native-tvos, but our project is based on rn 0.66.2. I wonder if it is possible to monorepo it or something, or an “easy” way to apply the current changes to newer RN branches… Or that’s actually “too different to reconcile”?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
miblanchardcommented, Jan 3, 2022

@douglowder - Thanks again for your great work with this.

2reactions
frankenthumbscommented, Dec 20, 2021

i have an iteration of upgrading to 0.66.4 here: https://github.com/frankenthumbs/react-native-tvos/tree/tvos-v0.66.4 i’m stuck on running ./scripts/tvos-test.sh, most of the tests seems fine.

some of the color tests are failing (i believe its failing on this repo as well)

    ✗ testGenerateFallbacks, ((red1) equal to (red2)) failed: ("120") is not equal to ("255")
    ✗ testGenerateFallbacks, ((green1) equal to (green2)) failed: ("120") is not equal to ("255")
    ✗ testGenerateFallbacks, ((blue1) equal to (blue2)) failed: ("128") is not equal to ("255")
    ✗ testGenerateFallbacks, ((red1) equal to (red2)) failed: ("60") is not equal to ("0")
    ✗ testGenerateFallbacks, ((green1) equal to (green2)) failed: ("60") is not equal to ("0")
    ✗ testGenerateFallbacks, ((blue1) equal to (blue2)) failed: ("67") is not equal to ("0")
    ✗ testGenerateFallbacks, ((alpha1) equal to (alpha2)) failed: ("76") is not equal to ("102")
    ✗ testGenerateFallbacks, ((red1) equal to (red2)) failed: ("120") is not equal to ("255")
    ✗ testGenerateFallbacks, ((green1) equal to (green2)) failed: ("120") is not equal to ("255")
    ✗ testGenerateFallbacks, ((blue1) equal to (blue2)) failed: ("128") is not equal to ("255")
    ✗ testGenerateFallbacks, ((red1) equal to (red2)) failed: ("116") is not equal to ("255")
    ✗ testGenerateFallbacks, ((green1) equal to (green2)) failed: ("116") is not equal to ("255")
    ✗ testGenerateFallbacks, ((blue1) equal to (blue2)) failed: ("128") is not equal to ("255")
    ✗ testGenerateFallbacks, ((red1) equal to (red2)) failed: ("60") is not equal to ("0")
    ✗ testGenerateFallbacks, ((green1) equal to (green2)) failed: ("60") is not equal to ("0")
    ✗ testGenerateFallbacks, ((blue1) equal to (blue2)) failed: ("67") is not equal to ("0")
    ✗ testGenerateFallbacks, ((red1) equal to (red2)) failed: ("60") is not equal to ("0")
    ✗ testGenerateFallbacks, ((green1) equal to (green2)) failed: ("60") is not equal to ("0")
    ✗ testGenerateFallbacks, ((blue1) equal to (blue2)) failed: ("67") is not equal to ("0")
    ✗ testGenerateFallbacks, ((alpha1) equal to (alpha2)) failed: ("76") is not equal to ("102")
    ✗ testGenerateFallbacks, ((red1) equal to (red2)) failed: ("60") is not equal to ("0")
    ✗ testGenerateFallbacks, ((green1) equal to (green2)) failed: ("60") is not equal to ("0")
    ✗ testGenerateFallbacks, ((blue1) equal to (blue2)) failed: ("67") is not equal to ("0")
    ✗ testGenerateFallbacks, ((alpha1) equal to (alpha2)) failed: ("45") is not equal to ("51")
    ✗ testGenerateFallbacks, ((red1) equal to (red2)) failed: ("118") is not equal to ("255")
    ✗ testGenerateFallbacks, ((green1) equal to (green2)) failed: ("118") is not equal to ("255")
    ✗ testGenerateFallbacks, ((blue1) equal to (blue2)) failed: ("128") is not equal to ("255")

as well as the more concerning UI snapshot tests. I believe we need to get new snapshots of these tests but i’m not sure how the snapshots are taken:

    ✗ testLayoutExample, Test failed (NSInternalInconsistencyException)
    ✗ testScrollViewExample, Test failed (NSInternalInconsistencyException)
    ✗ testTextExample, Test failed (NSInternalInconsistencyException)
    ✗ testTVFocusGuideExample, RedBox errors: (
    ✗ testViewExample, Test failed (NSInternalInconsistencyException)

from the pngs found in react-native/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios it seems like some of the views got upgraded:

screenshot taken from the app: Uploading Screen Shot 2021-12-20 at 10.22.02 AM.png…

screenshot from main: https://github.com/frankenthumbs/react-native-tvos/blob/tvos-v0.66.4/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/packages-rn-tester-js-RNTesterApp.ios/testTextExample_1-iOS15_tvOS.png

gonna try integrating with our applications and see if everything is working there. But it would be nice to get the snapshot UI tests working as I know this is something Doug makes sure on every iteration

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade from 0.66.2 to 0.68.2 issue: Could not determine the ...
Right now, upgrading from 0.66.2 to 0.68.2. Here's my `android/build.gradle' file: import org.apache.tools.ant.
Read more >
Upgrading to new versions - React Native
You first need to select from and to which version you wish to upgrade, by default the latest major versions are selected. After...
Read more >
React Native Upgrade Helper
React Native Upgrade Helper · What's your current react-native version? · To which version would you like to upgrade?
Read more >
Upgrade Current React Native Project Version to 0.66 Latest ...
1. On the day of making this tutorial react native has launched its 0.66.2 version. So open your existing project directory in Terminal...
Read more >
Advice needed. Upgrading RN 0.66 to 0.7 : r/reactnative - Reddit
I am trying to update a real world project from RN 0.66 to the ... I also have a real world react-native project...
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