Coder Social home page Coder Social logo

Expo bare + viroReact getting this error on ios -> requireNativeComponent: "VRTText" was not found in the UIManager. about viro HOT 22 CLOSED

byyoungjin avatar byyoungjin commented on August 20, 2024 6
Expo bare + viroReact getting this error on ios -> requireNativeComponent: "VRTText" was not found in the UIManager.

from viro.

Comments (22)

Hunnainwali avatar Hunnainwali commented on August 20, 2024 13

I've got it working.

  1. uninstall viro using $npm uninstall @viro-community/react-viro
  2. install again using $npm install @viro-community/[email protected] --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.

from viro.

doranteseduardo avatar doranteseduardo commented on August 20, 2024 3

Working on it

from viro.

creimers avatar creimers commented on August 20, 2024 2

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.

from viro.

Hunnainwali avatar Hunnainwali commented on August 20, 2024 1

Facing same error on bare work flow. Android is working alright but iOS is showing the UIManager error.

from viro.

Cchumi avatar Cchumi commented on August 20, 2024 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

from viro.

danieldulcettiBN avatar danieldulcettiBN commented on August 20, 2024

I have this problem too, but in my case the UIManager error reports 'VRTARScene' as not found.
Tried in an existing project and in a new one, both created from react-native-cli.

The problem is only for iOS, Android is working well; I have followed all setup points.

React native: 0.65.1
Viro: 2.21.1 (tried also with 2.21.0)
XCode: 12.5 (tried also on XCode 13)

from viro.

creimers avatar creimers commented on August 20, 2024

Bildschirmfoto 2021-09-23 um 12 19 30

from viro.

mariansam avatar mariansam commented on August 20, 2024

Thanks @Hunnainwali, I hope this will help us. But now we need to find the reason things got broken in v2.21.0.

Cc @doranteseduardo

from viro.

doranteseduardo avatar doranteseduardo commented on August 20, 2024

Question, is you use the stardard lib instead the static_lib, does it work well or it seems to be broken too?

from viro.

byyoungjin avatar byyoungjin commented on August 20, 2024

I've got it working.

  1. uninstall viro using $npm uninstall @viro-community/react-viro
  2. install again using $npm install @viro-community/[email protected] --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.

Yes it is working! Thanks. And also work on version 2.21.0. This problem only happens on 2.21.1 as #53 says

from viro.

byyoungjin avatar byyoungjin commented on August 20, 2024

Question, is you use the stardard lib instead the static_lib, does it work well or it seems to be broken too?

I think I'm using static_lib following this https://github.com/ViroCommunity/viro/blob/main/readmes/INSTALL_IOS.md
I haven't used standard lib. I Think.

from viro.

Cchumi avatar Cchumi commented on August 20, 2024

Working on it

Thanks guy

from viro.

doranteseduardo avatar doranteseduardo commented on August 20, 2024

I've been unable to build the static_lib, however the standard lib works well for me.
Can anyone confirm that changing the line:
pod 'ViroKit_static_lib', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/static_lib'
to
pod 'ViroKit', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/'
works?

from viro.

Cchumi avatar Cchumi commented on August 20, 2024

I've been unable to build the static_lib, however the standard lib works well for me.

Can anyone confirm that changing the line:

pod 'ViroKit_static_lib', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/static_lib'

to

pod 'ViroKit', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/'

works?

I don't know this I try it tomorrow and post back the result.
Thanks 👌

from viro.

Cchumi avatar Cchumi commented on August 20, 2024

I've been unable to build the static_lib, however the standard lib works well for me. Can anyone confirm that changing the line: pod 'ViroKit_static_lib', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/static_lib' to pod 'ViroKit', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/' works?

I try your option and it is not working.
First i try in my app but getting also the VRTEXT error.

So i try this in the starter kit and it's not working also, always this UIManager error.

What else to try to fix this ?

this my pod file
`require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'myviroapp' do
config = use_native_modules!

use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change false to true and then install pods
:hermes_enabled => false
)

pod 'ViroReact', :path => '../node_modules/@viro-community/react-viro/ios/'
pod 'ViroKit', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/'

target 'myviroappTests' do
inherit! :complete

end

post_install do |installer|
react_native_post_install(installer)
end
end
`
Thanks

from viro.

Piquart avatar Piquart commented on August 20, 2024

Same issue on my side, I have tried using both static and standard lib but I'm receiving the same issue: "VRTVideoSurface was not found in the UIManager", please help me :(

I can confirm that, as suggested by #56, using the library of version 2.21.0 (libViroReact.a) it works but the ViroVideo is not working ("setOnBufferEndViro" error).

Is there a working workaround to solve this problem?

Thanks in advance,

from viro.

Cchumi avatar Cchumi commented on August 20, 2024

Hi I got virovideo working in 2.22.1 but I have need to compile libviroreact by myself.
As explanation if you look at node modules viro packages you will notice in the dist folder that every libviroreact.a size is 132ko that is not correct so I have compiled on my side and place them in this folder.
Result virovideo is working for me.

I create an issue for this case.

And doesn't know if it is useful.

Same issue on my side, I have tried using both static and standard lib but I'm receiving the same issue: "VRTVideoSurface was not found in the UIManager", please help me :(

I can confirm that, as suggested by #56, using the library of version 2.21.0 (libViroReact.a) it works but the ViroVideo is not working ("setOnBufferEndViro" error).

Is there a working workaround to solve this problem?

Thanks in advance,

from viro.

Piquart avatar Piquart commented on August 20, 2024

Hi thank you for your quick reply!

Could you suggest me all the required steps to compile libviroreact on my own?

Thank you again,

from viro.

Cchumi avatar Cchumi commented on August 20, 2024

I can send a link to download the dist folder tomorrow if you want

from viro.

Piquart avatar Piquart commented on August 20, 2024

Thank you very much for your support, fortunately I was able to compile the libviroreact, now it seems to be working; using ViroVideo I have noticed a strange thing, when I dismiss the scene the sound does not stop, I partially solved the issue putting a reference and stopping the audio (this.refs[VIDEO_REF].paused = "true") but, closing and opening the scene many times, there are memory leaks and the app crashes, it happens to you? do you fixed this issue?

Thank you again @Cchumi !!!

Regards

from viro.

HugoGaechter avatar HugoGaechter commented on August 20, 2024

Hello, I have the same issue as you, and changing the line:

pod 'ViroKit_static_lib', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/static_lib'

to

pod 'ViroKit', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/'

didn't work for me either.

I need virovideo therefore I need the 2.21.1 version

@Piquart @Cchumi
Could you explain to me how to compile the libviroreact library on my own, or send me the dist folder ?

Thank you very much

from viro.

doranteseduardo avatar doranteseduardo commented on August 20, 2024

Closed in favour of #56

from viro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.