Failed to call into JavaScript module method AppRegistry

This issue has been created since 2022-09-16.

Description

Ekran Resmi 2022-09-16 09 58 08

I still get these errors even i patched with deprecated-react-native-prop-types

Version

0.70.1

Output of npx react-native info

System:
OS: macOS 12.5.1
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 2.24 GB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.20.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 6.14.17 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK:
API Levels: 29, 30, 31, 33
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0, 33.0.0
System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-31 | Google APIs Intel x86 Atom_64
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 14.0/14A309 - /usr/bin/xcodebuild
Languages:
Java: 11.0.14 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.1 => 0.70.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

none

Snack, code example, screenshot, or link to a repository

none

efstathiosntonas wrote this answer on 2022-09-16

Are you sure that you have patched all node_modules using it?

This should return all the found ViewPropTypes in your node_modules (including the patched ones):

grep -F "ViewPropTypes" -l -r ./node_modules

Bayramito wrote this answer on 2022-09-16

grep -F "ViewPropTypes" -l -r ./node_modules

so is there any way to patch them all at once or i should patch them one by one?

efstathiosntonas wrote this answer on 2022-09-16

the safest way is to patch them one by one imo

rickhanlonii wrote this answer on 2022-09-16

@Bayramito are you sure this error is related to patching the package?

Patching the package is not the recommended solution for fixing the deprecated proptypes error. Before patching the packages, could you try to find the libraries you're using that are using the proptypes? What's the output of the grep command @efstathiosntonas shared?

rickhanlonii wrote this answer on 2022-09-16

I see, so this error can be shown if a package throws an error based on using deprecated types, but your error message is missing the original error that was throw. Can you confirm that error is present like @efstathiosntonas mentioned here? #34688 (comment)

efstathiosntonas wrote this answer on 2022-09-16

@rickhanlonii before the Invariant Violation error it says cannot read property 'resizeMode' of undefined ....., have you fixed that first?

edit: the deprecated view props package must be manually installed, have you installed it?

baedyl wrote this answer on 2022-09-24

@cortinico I'm facing the same issue, I run the command you shared and here is the result:

./node_modules/@react-native-picker/picker/js/PickerIOS.ios.js ./node_modules/@react-native-picker/picker/js/PickerMacOS.macos.js ./node_modules/@react-native-picker/picker/dist/commonjs/PickerIOS.ios.js.map ./node_modules/@react-native-picker/picker/dist/commonjs/PickerMacOS.macos.js.map ./node_modules/@react-native-picker/picker/dist/module/PickerIOS.ios.js.map ./node_modules/@react-native-picker/picker/dist/module/PickerMacOS.macos.js.map ./node_modules/expo-modules-core/CHANGELOG.md ./node_modules/react-native/Libraries/Image/ImageBackground.js ./node_modules/react-native/Libraries/Image/ImageProps.js ./node_modules/react-native/Libraries/Image/ImageViewNativeComponent.js ./node_modules/react-native/Libraries/Image/TextInlineImageNativeComponent.js ./node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js ./node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js ./node_modules/react-native/Libraries/Components/Slider/Slider.js ./node_modules/react-native/Libraries/Components/Slider/SliderNativeComponent.js ./node_modules/react-native/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js ./node_modules/react-native/Libraries/Components/View/ViewNativeComponent.js ./node_modules/react-native/Libraries/Components/View/View.js ./node_modules/react-native/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js ./node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js ./node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js ./node_modules/react-native/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js ./node_modules/react-native/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js ./node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js ./node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js ./node_modules/react-native/Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js ./node_modules/react-native/Libraries/Components/Switch/Switch.js ./node_modules/react-native/Libraries/Components/Switch/AndroidSwitchNativeComponent.js ./node_modules/react-native/Libraries/Components/Switch/SwitchNativeComponent.js ./node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js ./node_modules/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js ./node_modules/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js ./node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js ./node_modules/react-native/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js ./node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js ./node_modules/react-native/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js ./node_modules/react-native/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js ./node_modules/react-native/Libraries/Components/TextInput/TextInput.js ./node_modules/react-native/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js ./node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js ./node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js ./node_modules/react-native/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js ./node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.ios.js ./node_modules/react-native/Libraries/Modal/Modal.js ./node_modules/react-native/Libraries/Modal/RCTModalHostViewNativeComponent.js ./node_modules/react-native/index.js ./node_modules/react-native/CHANGELOG.md ./node_modules/react-native-codegen/lib/parsers/flow/components/__test_fixtures__/fixtures.js ./node_modules/react-native-codegen/lib/parsers/flow/components/__test_fixtures__/failures.js ./node_modules/react-native-codegen/lib/parsers/flow/components/__test_fixtures__/fixtures.js.flow ./node_modules/react-native-codegen/lib/parsers/flow/components/__test_fixtures__/failures.js.flow ./node_modules/react-native-codegen/lib/parsers/typescript/components/__test_fixtures__/fixtures.js ./node_modules/react-native-codegen/lib/parsers/typescript/components/__test_fixtures__/failures.js ./node_modules/react-native-codegen/lib/parsers/typescript/components/__test_fixtures__/fixtures.js.flow ./node_modules/react-native-codegen/lib/parsers/typescript/components/__test_fixtures__/failures.js.flow ./node_modules/react-native-button/Button.js ./node_modules/react-native-fast-image/dist/index.js.flow ./node_modules/react-native-fast-image/dist/index.cjs.js.flow ./node_modules/babel-preset-expo/node_modules/metro-react-native-babel-preset/src/configs/lazy-imports.js

How can I fix this please ?

mantegnous wrote this answer on 2022-10-04

same problem here how to resolve?

chernandezlt wrote this answer on 2022-10-04

same problem here, I've implemented some solutions that I've found but nothing happens, any solutions?

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Can't unpin message from "Pin limit reached" popup if 3 messages with preview are pinned 0 2022-09-12 2022-09-18
When loading NegBioParser() the session crashes 0 2022-07-13 2022-07-20
Cant open map due to visual prospecting np exception 2 2022-08-08 2022-09-06
Can't run solr wrapper without admin access on computer 0 2022-01-31 2022-07-24
Add reference and viewer for TileJSON endpoint 0 2022-02-03 2022-07-23
Unhandled exception (43d3b09b) 0 2021-04-19 2022-09-26
Yellow boxes around characters. 1 2022-02-06 2022-10-07
Download for .zip file says "needs authorization" 6 2022-02-11 2022-09-12
Flatpak version has a blank white screen 2 2021-12-02 2022-08-01
Webbrowsers (and Spotify) not showing up for passthrough 3 2021-11-20 2022-09-27
Improve test coverage 0 2021-02-17 2022-07-23
details_url not working 7 2021-02-24 2022-07-09
[tabbed-layout] tab-bar disappearing when switching workspaces (tags) on another monitor 6 2022-03-31 2022-09-06
New version of dependency terraform available: 1.0.7 0 2021-09-15 2022-10-05
cli support for received SMS 3 2022-06-09 2022-10-07
图片上传不能正确显示 1 2021-01-24 2022-01-12
magicbook build cannot find source images 7 2019-09-17 2022-09-23
Gradle 버전 5 이상 일 경우 Lombok 어노테이션이 적용 안됨. 0 2022-03-29 2022-10-03
src/tools/Makefile.am doesn't recognize CXXFLAGS env var 5 2021-09-23 2022-09-25
Colors and Highlighting messed up on v0.10.0 (CentOS 7) 6 2021-09-24 2022-09-15
exchanges: category selection buttons 2 2019-06-06 2022-07-30
Add end-to-end tests using service-mesh-pattern file 0 2022-03-25 2022-08-09
How to add dynamic CSS based on configuration 1 2021-09-03 2022-09-01
installation fails 1 2020-11-26 2022-01-21
webdav代理开启是所有通过webdav的链接流量全部走服务器吗?还有就是能否加个自定义脚本放统计代码 0 2021-12-30 2022-10-03
Add End-to-End tests 1 2020-01-27 2022-10-03
Regression: SliceGridAlongPlane() does not honor Box extents 0 2022-01-11 2022-07-23
Issues updating from 1.43.0 to latest version. 7 2021-10-29 2022-09-13
[Bug]: Fix scroll bars in containers and tables 0 2022-09-05 2022-08-31
Using Reanimated 2 with MobX 3 2022-02-21 2022-07-19
Optimising modules with no loaders 2 2018-04-30 2022-10-05
Deleting skill from Skill Catalog does not always update the table of exported skills 2 2022-06-10 2022-09-09
Focus not returned to delete button if canceling Removal Safety Check dialog 2 2022-06-10 2022-09-05
DocumentSymbolService should use the language specific DocumentExtentions depending on the URI of the particular symbol 0 2022-07-20 2022-09-23
Only X-1/X files are successfully uploaded 1 2019-12-23 2022-10-06
Dependency predicates 10 2022-08-02 2022-09-13
nodejs upstream uses openssl 3 1 2022-06-27 2022-09-18
Is it possible to use color variables with gradients when specifying the theme 1 2020-12-11 2022-10-07
[Question] 使用不等于条件查询报错 9 2021-06-29 2022-07-25
Training model incompatibility issues 2 2022-02-27 2022-10-01
How can remove the unwanted part on the top navigation bar 3 2022-08-12 2022-09-24
Wrong langage for a modal title 1 2022-09-19 2022-09-28
updateData 2 2016-10-20 2021-12-31
[BUG] GTM32 REV B - motors runnig too fast - only can hear noise from motors. 4 2021-11-30 2022-09-24
[spark] java.lang.IndexOutOfBoundsException on training using categorical features with a cardinality of 1 1 2021-09-29 2022-09-13
[DOCS] log_step and load_chicken unexpected keyword arguments 4 2021-05-24 2022-08-28
[BUG] Double check if our meta-estimators are compatible with `sample_weight`. 0 2021-08-30 2022-07-23
An addition to /docs/5.1/content/typography/ 1 2022-02-23 2022-09-24
Tests are not running in parallel on the CircleCI 6 2021-07-27 2022-10-01
how to initially we can invoke cloud function from deployment manager? 0 2022-01-20 2022-09-30