react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

Require cycle: node_modules/react-native-gesture-handler/index.js

Open zhaokera opened this issue 7 years ago • 16 comments

Project initiation simulator screen shot - iphone x - 2018-12-29 at 10 58 33
"react": "16.6.3", "react-native": "0.57.8", "react-native-gesture-handler": "^1.0.12", "react-navigation": "^3.0.9",

zhaokera avatar Dec 29 '18 03:12 zhaokera

Having same issue

piyushdesuvit avatar Dec 29 '18 07:12 piyushdesuvit

same here, but there's no error like this in few days ago

"react": "16.6.1", "react-native": "0.57.5", "react-native-gesture-handler": "^1.0.9", "react-navigation": "^3.0.0",

DeVoresyah avatar Dec 29 '18 20:12 DeVoresyah

Having same issue at to day @@

tphuc012 avatar Jan 02 '19 03:01 tphuc012

I check back to the react-navigation documentation and try what they're said

adding those to MainActivity.java


import com.facebook.react.ReactActivity;
+ import com.facebook.react.ReactActivityDelegate;
+ import com.facebook.react.ReactRootView;
+ import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;

public class MainActivity extends ReactActivity {

  @Override
  protected String getMainComponentName() {
    return "Example";
  }

+  @Override
+  protected ReactActivityDelegate createReactActivityDelegate() {
+    return new ReactActivityDelegate(this, getMainComponentName()) {
+      @Override
+      protected ReactRootView createRootView() {
+       return new RNGestureHandlerEnabledRootView(MainActivity.this);
+      }
+    };
+  }
}

but still didnt work

DeVoresyah avatar Jan 02 '19 06:01 DeVoresyah

This is caused by metro https://github.com/facebook/metro/issues/287

sunnylqm avatar Jan 03 '19 14:01 sunnylqm

Fixed by https://github.com/kmagiera/react-native-gesture-handler/pull/391/files

osdnk avatar Jan 04 '19 09:01 osdnk

Fixed by https://github.com/kmagiera/react-native-gesture-handler/pull/391/files

when new version will be released ?

atkit avatar Jan 10 '19 11:01 atkit

Seems like it was released two days ago: https://github.com/kmagiera/react-native-gesture-handler/releases/tag/1.0.14

kaloncheung124 avatar Jan 25 '19 23:01 kaloncheung124

Seems like it was released two days ago: https://github.com/kmagiera/react-native-gesture-handler/releases/tag/1.0.14

how to upgrade the package sir?

DeVoresyah avatar Jan 26 '19 16:01 DeVoresyah

If you're using npm, you should be able to run npm install react-native-gesture-handler@latest --save. This should also work for other packages. However, if this package is a dependency of another package, I think you have to wait for the devs of that other library to update their deoendencies first.

kaloncheung124 avatar Jan 26 '19 18:01 kaloncheung124

RNGH is backward compatible and I believe that there's no package which requires some exact version so feel free to update to 1.0.15

osdnk avatar Jan 26 '19 19:01 osdnk

RNGH is backward compatible and I believe that there's no package which requires some exact version so feel free to update to 1.0.15

I've update to 1.0.15 but still got same error, any suggestion?

DeVoresyah avatar Jan 26 '19 19:01 DeVoresyah

Updating to 1.0.15 fixed my issue 👍

rabingaire avatar Feb 04 '19 08:02 rabingaire

I've update to 1.0.15 still having same error

BharathBunty avatar Feb 12 '19 13:02 BharathBunty

Version 1.1.0 also has this error

dominik-mrugalski avatar Apr 25 '19 05:04 dominik-mrugalski

Problem still exists with version 1.6.1 with iOS v13.4.1

satyam90 avatar May 20 '20 13:05 satyam90