React-native-gesture-handler: For React-native 0.60.0 auto link, Android : null is not an object (evaluating 'RNGestureHandlerModule.State'

Created on 4 Jul 2019  路  6Comments  路  Source: software-mansion/react-native-gesture-handler

Current Behavior
After running react-native run-android shows :
null is not an object (evaluating 'RNGestureHandlerModule.State'. )

software | version
react-navigation | ^3.11.0
react-native | ^0.60.0
node | v12.5.0
npm or yarn | npm 6.9.0

React-native 0.60.0 is release, they added Autolinking of package feature
image

Ref : https://github.com/react-native-community/releases/blob/master/CHANGELOG.md

Most helpful comment

you should use react-native 0.59.10, this project needs to migrate to androidX, now it doesn't work with react-native 0.60

All 6 comments

Same problem.

RNGestureHandlerEvent.java:3: error: package android.support.v4.util does not exist

import android.support.v4.util.Pools;

you should use react-native 0.59.10, this project needs to migrate to androidX, now it doesn't work with react-native 0.60

you can search the jetifier in github

@TSjianjiao
It not work same error

Current Behavior
After running react-native run-android shows :
null is not an object (evaluating 'RNGestureHandlerModule.State'. )

As React Native 0.60.0 implements autolink, you need unlink native dependencies previously linked. Documentation:

Autolinking is a replacement for react-native link. If you have been using React Native before version 0.60, please unlink native dependencies if you have any from a previous install.

And for AndroidX at now you can use this workaround (You can found several PRs about it, waiting to be merged).

This issue is stale and AndroidX support has been already resolved. I'll close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tallen11 picture tallen11  路  3Comments

rgangopadhya picture rgangopadhya  路  4Comments

brentvatne picture brentvatne  路  4Comments

chhornponleu picture chhornponleu  路  3Comments

wcandillon picture wcandillon  路  4Comments