viro: Expo bare + viroReact getting this error on ios -> requireNativeComponent: "VRTText" was not found in the UIManager.
Requirements:
Please go through this checklist before opening a new issue
- Review the documentation
- Search for existing issues in: viromedia/viro & ViroCommunity/viro
- Use the latest ViroReact release
Environment
Please provide the following information about your environment:
- Development OS: Mac
- Device OS & Version: ios 14.7.1
- Version:
"dependencies": {
"@viro-community/react-viro": "^2.21.1",
"expo": "~42.0.1",
"expo-splash-screen": "~0.11.2",
"expo-status-bar": "~1.0.4",
"expo-updates": "~0.8.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "~0.63.4",
"react-native-gesture-handler": "~1.10.2",
"react-native-reanimated": "~2.2.0",
"react-native-screens": "~3.4.0",
"react-native-unimodules": "~0.14.5",
"react-native-web": "~0.13.12"
},
- Device(s): iphone 8
Description
I just trying to initialize my app with Expo bare work flow + @viro-community/react-viro
But keep getting these error
Reproducible Demo
you can reproduce this by following this
-
npm install --global expo-cli ( my expo-cli version is 4.11.0)
-
expo init <project name> -> select bare work flow
-
npm install
-
npm install --save @viro-community/react-viro
-
go ios/PodFile and add these lines as instructed on https://github.com/ViroCommunity/viro/blob/main/readmes/INSTALL_IOS.md pod ‘ViroReact’, :path => ‘…/node_modules/@viro-community/react-viro/ios/’ pod ‘ViroKit_static_lib’, :path => ‘…/node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/static_lib’
-
npx pod-install
-
put some viro react code on App.js
-
npx react-native run ios ( just to check the linking work well) -> have error Invariant Violation: requireNativeComponent: “VRTText” was not found in the UIManager.
-
run xcode, and excute with real device ->same error with 8
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 6
- Comments: 22 (5 by maintainers)
I’ve got it working.
For simulator you’ll get error related to ARWorldTrackingConfiguration which means project is configured correctly with Viro and you can test on real device.
Please let me know if it works or not.
Working on it
I’m experiencing the exact same error as @byyoungjin, but with an app that was bootstrapped with
react-native-cli
. It would appear that something’s not quite right with the iOS installation. I’m on react native 0.65.1.Hey all a quick question. I cannot use the 2.21.1 because of this VRTEXT error.
The fact is that this release fix virovideo which is needed for my application. Is this planned to fix the problem on the 2.21.1 release ?
If not for now how can i fix by myself ?
thanks
Facing same error on bare work flow. Android is working alright but iOS is showing the UIManager error.