-
-
Notifications
You must be signed in to change notification settings - Fork 955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not read property 'State' of undefined when import Swipeable #230
Comments
I'm getting the same error along with and error from the build procedure. I'm running on a windows 10 insiders edition and this is the message from the cmd screen: `:app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE FAILURE: Build failed with an exception.
BUILD FAILED Total time: 52.237 secs Any help will be greatly appreciated. |
In case you haven't tried, I fixed this issue by cleaning my simulator, restarting my bundler, and reinstalling the app with react-native run-ios. For install I used react-native link and did not edit any other native iOS files. Hope this helps. |
@johnhaup I think the problem here is NativeModules (which come from react-native) now support |
Open Xcode, and add Next, go over to Build Phases > Link Binaries with Libraries, add Rebuild your application. |
I got this error when import Swipeable following docs
import Swipeable from 'react-native-gesture-handler/Swipeable';
my version package : "^1.0.2"
======
After investigate, I found that NativeModules.RNGestureHandlerModule is undefined in
GestureHandler.js
const RNGestureHandlerModule = NativeModules.RNGestureHandlerModule;
The text was updated successfully, but these errors were encountered: