-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Library not working on Android Emulator #130
Comments
Hello @djordje47! I apologize that I will likely not have time to try to look into this and reproduce it myself, but I am curious about your screenshot. At the bottom it shows a yellow box dev warning from react-native-gesture-handler. Drax is built on top of react-native-gesture-handler, so if something is misconfigured about that, it will not work. Can you look into what that warning is and see if it helps you out? |
Hi thanks for answering! 👍 This is the full log:
I was googling it and found that it's just a log and that we should update our dependencies. Thanks in advance! 👍 Please if you have any other ideas, let me know! |
Ah.. well, as I mentioned I don't think I'll be much help currently, but I would suggest trying to see if you can get https://github.com/nuclearpasta/react-native-drax-example working in your emulator. If it works, see if you can track down what's different between the two. If it doesn't, then we might have a bigger problem here. |
Hi, I have done now exactly that. If I run your examples it works. If I move all your code into my created example by the way I have used this command to create the project:
In order to have the same version of react native like you and same version of gradle like you. I also used typescript. I thought it's something up to my setup because I am on linux Debian. But then also your examples should not work. :( I really don't know what to do. |
I'm sorry, that sounds very frustrating, but I think you'll just need to continue to track down what's different or missing. :( |
I have same issue |
I think this library use old version of react-native-gesture-handler. but the current version is "react-native-gesture-handler": "^2.2.0", |
@chukiatt The library definitely is using an older version. Have they introduced breaking changes in more recent ones? |
thank you |
Having same issue with Android emulator and ``react-native-gesture-handler": "^2.4.2". Think this needs to be addressed as it doesn't seem to like the new versions of |
That is a shame :( Unfortunately I have not had availability to put any serious development effort into this library in quite a while. To give an idea of how much of a focus React Native development has been for me recently: my primary mobile app project is still on RN 0.63. 😬 |
https://stackoverflow.com/questions/71618989/react-native-gesture-handler-not-working-on-android. This fix worked for me to get your color drag example working, @lafiosca . (by just grabbing and slightly modifying the component in "screens", removing DragProvider from the component etc)> But when I tried it in another app (with literally the identical hierarchy), it wouldn't work. I would get a warning in the snackbar in emulator: "ref.measureLayout must be called with a ref from a View"... looking at your code I saw the setting of that ref in the DraxView to be what's breaking. I literally have no idea why it works in one harness and not another. I tired downgrade to 1.8 of react-native-gesture-handler handler, but gradle choked on it during the build. dunno. frustrated. |
I'm sorry. I understand how frustrating it can be to see a library like this fall into a state of disrepair and not work with current versions of the platform. (I once gave a talk on that topic 😅) Sadly I still have no availability to work on Drax for the foreseeable future. |
@artemis-prime how did you solve this? did you find another library? for me this library does not work on android |
@Arkan4ik. I kind of built my own system on top of |
Hi everyone,
first of all I need to tell u that I am beginner with ReactNative, so if at the end this resolves as something stupid, forgive me.
I have created new app using the command:
npx react-native init puzzleNative
for the application I want to build.My Gradle version is:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
My
package.json
looks like this:And in the App.js file I am just trying to run the example from the github page like so:
I am using Android 10 Q for my emulator.
Please if someone can help me I would really appreciate it.
Thanks in advance! :)
And I can't drag the bluebox. I dont have any errors in the console.
The text was updated successfully, but these errors were encountered: