r/reactnative • • Sep 08 '21

All RN developers be like

Post image
324 Upvotes

31 comments sorted by

8

u/surajprasad13 Sep 08 '21

yes with 0.65 version it is not working properly make sure you are running previous version oh god !

4

u/namastakes Sep 08 '21

That’s the thing, already upgraded to 0.65 in prod and released. I’m screwed!

4

u/[deleted] Sep 08 '21

You can downgrade... just put your versions in here and do the opposite/backwards changes:

https://react-native-community.github.io/upgrade-helper/

4

u/namastakes Sep 08 '21

Hehe yeah, ofc, I just hate the fact that I have to downgrade everything just because of one library.

4

u/piaskowyk Sep 10 '21

2

u/namastakes Sep 10 '21

Oh holy night! That’s awesome! Good work!

3

u/Gaia_Knight2600 Sep 08 '21

im literally running a project on android as i saw this to check if it works after updating to the 2.3.0 alpha version. had problems with @react-native-community/blur that didnt work after removing jcenter() after upgrading to 0.65.1. then reanimated after adding jcenter() back.

edit: 2.3.1-alpha doesnt work. the project can be generated with yarn android, but it gives errors when you open the app.

2

u/namastakes Sep 08 '21

So which version worked? Alpha 2.3.0? Trying to get my production app with RN 0.65 to run without crashing on android…

2

u/Gaia_Knight2600 Sep 08 '21

well neither work completely. after upgrading to 2.3.0-alpha i can run yarn android to build the project, on 2.2.0 it would fail here already and not build.

2.3.0-alpha just gives me errors when the project opens. so just because it can build it doesnt really help.

guess we just have to wait longer before we can upgrade. though it seems very important because google recently said that soon all updates must target api level 30.

we are literally at the mercy of npm library maintainers.

10

u/bra_scene Sep 08 '21

nope, it’s just for RN devs who think they can’t have a basic text input without using reanimated.

8

u/namastakes Sep 08 '21

Or everyone who wants navigation in their apps? 😆

5

u/Gaia_Knight2600 Sep 08 '21

i recently created a new project which uses react-navigation v6 and rn 0.65.1. it has no problems. i dont use react-native-reanimated directly. maybe react-navigation uses it under the hood but its not causing me any problems.

2

u/namastakes Sep 08 '21

Hmm, maybe you’re right. Seems like it was a long time ago you needed to install reanimated for react-navigation. That’s great news!

9

u/Gaia_Knight2600 Sep 08 '21

check out the docs for v5 vs v6 for libraries which you have to download(other than react-navigation and the navigators themselves).

v5:

yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view

v6:

yarn add react-native-screens react-native-safe-area-context

thats quite the reduction

5

u/Dafth Sep 08 '21

That works only with the native stack which now is the default stack navigator, if you want any other kind of navigator like drawer you'll have to install also the other dependencies like reanimated and gesture handler

1

u/Gaia_Knight2600 Sep 08 '21

oh didnt know that. i only used native-stack and material-bottom-tab so far. and they dont have animations like the drawer.

anyway it seems like this is a pretty huge problem for basically any project.

1

u/rocketattack Sep 08 '21

react-native-navigation gang checking in.

6

u/Cookizza Sep 08 '21

Having no problem with version 2.2 in multiple production apps.

2.3.0 is an alpha! I'm super keen for easy layout animations too but we gotta wait... maybe by christmas..

5

u/Jaymageck Sep 08 '21

How about a stable release of React Native instead.

1.0 when?

1

u/Gaia_Knight2600 Sep 09 '21

it should be stable. ive heard they dont follow the traditional semver versioning standard.

but imo i consider the autolinking feature a huge step. im lowkey glad only started after that was a thing. that was a missed opportunity to go from 0.59.x->1.0.0.

2

u/tsapeta Expo Team Sep 09 '21

Really? Each minor version of React Native breaks something in existing libraries, not only in Reanimated. They didn't really care about library authors so far so it's definitely not stable.
Also, they wouldn't add autolinking if Expo didn't do that thing with its modules — the idea was just copied over to React Native CLI.

2

u/chakrihacker Sep 08 '21

What about gradle 7 breaking your builds??

2

u/Nightlightz24884 Sep 09 '21

I literally spent the whole day losing my mind. I just got an M1 Mac so when I got the error I just thought it had to be the unsupported silicon chip. I spent hours looking online for a solution. Turns out I just had to switch to Java 8(was at JDK 16).

2

u/chakrihacker Sep 09 '21

I hate how frequently google or Android breaks stuff and their development is decades backwards compared to iOS

2

u/wvddries Sep 08 '21

My Jest is bitching about this lib all the time

2

u/martinlutherkong Sep 09 '21

Yeah, looks like I can't upgrade my app to 0.65 either. Certain screen transitions (react-navigation v6) on Android using react-native-reanimated (2.3 alpha) would crash with a native error "Viewmanager for tag -1 could not be found". Think I'll wait this one out.

1

u/perlpimp Sep 09 '21

React-native-cookies that works

1

u/[deleted] Sep 09 '21

Animation was always so hard to learn

1

u/DettlafftheGreat Sep 08 '21

CSS Grid support 😢

1

u/MigraineWorker Sep 08 '21

Screwed my navigation