Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Upgrade React-Native to 0.66.2 #3129

Merged
merged 12 commits into from
Dec 31, 2021
Merged

Conversation

norbertschuler
Copy link
Collaborator

@norbertschuler norbertschuler commented Nov 7, 2021

Fixes #3128
Fixes #3120
Fixes #3117
Fixes #3114
Fixes #3113
Fixes #3112
Fixes #3111
Fixes #3110
Fixes #3039

Changes in this pull request:

  • upgraded react-native to 0.66.2 and other npm modules
  • upgraded npm and package-lock.json to format 2

To-Do's:

@norbertschuler
Copy link
Collaborator Author

norbertschuler commented Nov 7, 2021

  • For a local Android build with metro an error occurred:
ERROR  TypeError: Cannot read property 'getAppNavigator' of undefined

This error is located at:
   in AppDrawerNavigatorContainer (created by Connect(AppDrawerNavigatorContainer))
   in Connect(AppDrawerNavigatorContainer) (at TreeCounter.native.js:32)
   ...
   in TreecounterApp(RootComponent) (at renderApplication.js:60), js engine: hermes
ERROR  Invariant Violation: Picker has been removed from React Native. It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. See https://github.com/react-native-picker/picker, js engine: hermes
ERROR  Error: Requiring module "app/components/Navigators/AppDrawerNavigator.js", which threw an exception: Invariant Violation: Picker has been removed from React Native. It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. See https://github.com/react-native-picker/picker, js engine: hermes

Update: The old npm module tcomb-form-native which is not updated since 2018 is using the old deprecated Picker and breaking the build as described in gcanti/tcomb-form-native#606:

Error: Requiring module "node_modules/tcomb-form-native/index.js", which threw an exception: Invariant Violation: Picker has been removed from React Native. It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. See https://github.com/react-native-picker/picker, js engine: hermes

@norbertschuler
Copy link
Collaborator Author

norbertschuler commented Nov 7, 2021

ERROR  VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another VirtualizedList-backed container instead.

@norbertschuler norbertschuler force-pushed the feature/react-native-upgrade branch 3 times, most recently from 4274de4 to eb1d58e Compare December 30, 2021 11:25
@norbertschuler norbertschuler force-pushed the feature/react-native-upgrade branch 2 times, most recently from 4a90b4a to 0c1d1cd Compare December 30, 2021 12:04
@norbertschuler norbertschuler force-pushed the feature/react-native-upgrade branch from 0c1d1cd to b875a11 Compare December 30, 2021 12:06
@norbertschuler norbertschuler force-pushed the feature/react-native-upgrade branch from 29f7de4 to 12ded16 Compare December 31, 2021 15:49
@norbertschuler norbertschuler marked this pull request as ready for review December 31, 2021 15:49
@norbertschuler norbertschuler merged commit ff4e319 into develop Dec 31, 2021
@norbertschuler norbertschuler deleted the feature/react-native-upgrade branch December 31, 2021 16:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade React-Native to 0.66.2
1 participant