GithubHelp home page GithubHelp logo

Comments (12)

dinotrnka avatar dinotrnka commented on June 10, 2024 1

OK, I finally got it. Here's the combination that works on React Native v0.60.4:

"gl-react": "^2.3.1"
"gl-react-native": "^2.60.0"

from gl-react-native-v2.

dinotrnka avatar dinotrnka commented on June 10, 2024

Hi,

Can anyone please answer? A simple yes/no is fine.

Thanks!

from gl-react-native-v2.

gre avatar gre commented on June 10, 2024

I guess you meant 0.60?

This project is not well maintained at the moment but I accept PR to fix this state.
I'll bump a new version with recent PR work to see if it helps. Please reach back to me if there are still issues with it. Thanks

from gl-react-native-v2.

dinotrnka avatar dinotrnka commented on June 10, 2024

I guess you meant 0.60?

This project is not well maintained at the moment but I accept PR to fix this state.
I'll bump a new version with recent PR work to see if it helps. Please reach back to me if there are still issues with it. Thanks

Thank you!
I will check the new version and will let you know if it works.

from gl-react-native-v2.

dinotrnka avatar dinotrnka commented on June 10, 2024

Hi,

I just tried to update gl-react-native, and I installed the v2.60.0. However, it's not working with the latest version of [email protected].

In other words, if I try to run the app with this setup:

├── UNMET PEER DEPENDENCY [email protected] 
├── [email protected] 
└── [email protected] 

I get this exact error: gre/gl-react#219

So I guess the correct thing to do is follow this advice:
[email protected] requires a peer of gl-react@^2.2.4 but none is installed. You must install peer dependencies yourself.

The problem is when I install gl-react@^2.2.4, it requires another peer:
npm WARN [email protected] requires a peer of react@^0.14.5 || ^15.0.0 but none is installed. You must install peer dependencies yourself.

And if I downgrade react to @0.14.5 or @15.0.0 it breaks a lot of stuff, because it's too low.

Do you have any advice? I might be close to the solution but can't seem to figure it out.
Thanks a lot, much appreciated!

from gl-react-native-v2.

gre avatar gre commented on June 10, 2024

yes it needs the v2 of gl-react. gl-react-native-v2 is incompatible with gl-react @ 3
the peer dep is just a warning so it should still be fine to ignore. But this will have to be fixed in https://github.com/gre/gl-react-v2

from gl-react-native-v2.

dinotrnka avatar dinotrnka commented on June 10, 2024

Thank you very much for the response!

The problem is, when I run the app with this setup, I get the error message Module gl-react/src/isAnimated does not exist in the Haste module map, similar to this issue: gre/gl-react#219

I tried to remove node_modules folder and install everything from the beginning, but it just leads to the same error.

from gl-react-native-v2.

dinotrnka avatar dinotrnka commented on June 10, 2024

I'm bumping this issue so it doesn't get stale. Did anyone else try to run gl-react-native on the latest React Native version?

from gl-react-native-v2.

dinotrnka avatar dinotrnka commented on June 10, 2024

Can anyone help?

from gl-react-native-v2.

superandrew213 avatar superandrew213 commented on June 10, 2024

It works fine for me on RN0.60.

Try npm start -- --reset-cache.

from gl-react-native-v2.

viewpnt1 avatar viewpnt1 commented on June 10, 2024

I'm having trouble going through android build process during upgrade to react-native 0.60.5.

 What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
 com.android.build.api.transform.TransformException: Error while generating the main dex list:
  Error while merging dex archives: 
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: com.projectseptember.RNGL.BuildConfig

Anyone encountered this yet?

from gl-react-native-v2.

viewpnt1 avatar viewpnt1 commented on June 10, 2024

After a while I found this in gradle log:

Configure project :gl-react-native WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

So I figured that somehow the module was already included alongside old RNGL module. I ended up removing the RNGL from gradle.build and gradle.settings (basically manual unlink) and build is ok now.
The fact is, as of 0.60 RN is automatically linking libraries, but somehow only this library caused a problem. My bet is that its because the names do not overlap and they probably do overlap in all other libraries (all use node_modules folder name except RNGL).

from gl-react-native-v2.

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.