viro icon indicating copy to clipboard operation
viro copied to clipboard

Can't use this package in react native 0.61.5 ?

Open tscj3490 opened this issue 4 years ago • 10 comments

I could run app in react-native 0.59, but in 0.61.5, app is crashed.

IMG_0438

Please upgrade version so that developers can use this package in react-native 0.60 + versions. Thanks

tscj3490 avatar May 25 '20 14:05 tscj3490

You can but with this line inside package.json "react-viro": "npm:@iskander508/react-viro@^0.61.2"

jpudysz avatar Jun 01 '20 10:06 jpudysz

@tscj3490 you good on this ? If so, could you close the issue ?

ranjanpoudel1234 avatar Jun 23 '20 01:06 ranjanpoudel1234

No, I am still struggling.. Would you provide a sample repo working in react native 0.61.5 or more version ?

tscj3490 avatar Jun 23 '20 01:06 tscj3490

I am using this in my package.json https://github.com/mendix/viro, can you try this source directly for react-viro in your package.json ?

ranjanpoudel1234 avatar Jun 23 '20 01:06 ranjanpoudel1234

oki.. let me try with it.

tscj3490 avatar Jun 23 '20 02:06 tscj3490

I am using this in my package.json https://github.com/mendix/viro, can you try this source directly for react-viro in your package.json ?

For me, it doesn't work. What react native version do u use ?

greenbaypayment avatar Jul 10 '20 18:07 greenbaypayment

this resolve the ios 13.5 bug UIWebView ? VR work after update?

Turtleted21 avatar Jul 16 '20 09:07 Turtleted21

this resolve the ios 13.5 bug UIWebView ? VR work after update?

No, I can't still deploy viro app to apple store.. Apple doesn't approve.

tscj3490 avatar Jul 16 '20 10:07 tscj3490

I am able to use viro in RN 0.63.3 by doing following:

  1. Clone viro repository
  2. Updated react and react-native versions to latest version in package.json
  3. Updated react and react-native versions to latest version in package.json in test folder and run npm install (May be not necessary)
  4. execute prepare_release.sh in root directory => It generates react-viro-2.17.0.tgz file
  5. Created project with react-native init and installed react-viro and create-react-class using npm
  6. Remove all the contents of react-viro in node-modules and then extract the contents of tgz file into cleared react-viro.
  7. execute this script to make all necessary modifications in gradle, AndroidManifest.xml and java files: ./node_modules/react-viro/bin/android-setup.sh true. Modified few errors
  8. Then running android script with GvrDebug, react-native run-android --variant=GvrDebug

The above mentioned steps made my VR app to run perfectly. refer this gist to see all the necessary changes: https://gist.github.com/akeemphilbert/8323a7b71e682469b922920a624b35a8

Hope this helps

akashchekka avatar Oct 21 '20 10:10 akashchekka

I am able to use viro in RN 0.63.3 by doing following:

  1. Clone viro repository
  2. Updated react and react-native versions to latest version in package.json
  3. Updated react and react-native versions to latest version in package.json in test folder and run npm install (May be not necessary)
  4. execute prepare_release.sh in root directory => It generates react-viro-2.17.0.tgz file
  5. Created project with react-native init and installed react-viro and create-react-class using npm
  6. Remove all the contents of react-viro in node-modules and then extract the contents of tgz file into cleared react-viro.
  7. execute this script to make all necessary modifications in gradle, AndroidManifest.xml and java files: ./node_modules/react-viro/bin/android-setup.sh true. Modified few errors
  8. Then running android script with GvrDebug, react-native run-android --variant=GvrDebug

The above mentioned steps made my VR app to run perfectly. refer this gist to see all the necessary changes: https://gist.github.com/akeemphilbert/8323a7b71e682469b922920a624b35a8

Hope this helps

Excuse me! @Akash76 Have you test this on iOS devices?

SpQuyt avatar Aug 15 '21 22:08 SpQuyt