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

Environment

Please provide the following information about your environment:

  1. Development OS: Mac
  2. Device OS & Version: ios 14.7.1
  3. 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"
  },
  1. 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

  1. npm install --global expo-cli ( my expo-cli version is 4.11.0)

  2. expo init <project name> -> select bare work flow

  3. npm install

  4. npm install --save @viro-community/react-viro

  5. 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’

  6. npx pod-install

  7. put some viro react code on App.js

  8. npx react-native run ios ( just to check the linking work well) -> have error Invariant Violation: requireNativeComponent: “VRTText” was not found in the UIManager.

  9. 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)

Most upvoted comments

I’ve got it working.

  1. uninstall viro using $npm uninstall @viro-community/react-viro
  2. install again using $npm install @viro-community/react-viro@2.20.2 --save (I’m using react-native version 0.64.2)
  3. run $npx react-native link
  4. run $cd ios
  5. run $pod deintegrate
  6. run $pod clean
  7. run $pod setup
  8. run $pod install

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.