-
I have a game app I made for iOS and Android, and I want to put it on the web. What is working What is not working Following the advice on react-native-reanimated web-support I Installed u/babel/plugin-proposal-export-namespace-from and added '@babel/plugin-proposal-export-namespace-from', to the plugins in the config file - above 'react-native-reanimated/plugin' I read that the gestures use MouseButton.LEFT by default - so I did not add any explicit mouse button support. App.js has the GestureHandlerRootView
Tap Gesture
Pan Gesture
Gesture Composition and Rendering
Here are some of my environment files - I suspect the problem may be in one of these: package.json
eas.js
app.json
It works on Android and iOS - but the tiles are just completely unresponsive to my mouse clicks and drags on the web. I am guessing (hoping) that this is really something about the configuration of my environment - given that it works elsewhere - but I am at a loss about what to change. I am pretty ignorant about all the decisions that I need to make - I am using expo, and I think metro? But I don't have a metro config file - is that likely the issue? I don't quite know what metro is TBH. Thanks for any guidance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Putting the gesture handler inside the conditional in the render of the tile enabled it to work on web. Not sure why (or how I came to try that :) )
|
Beta Was this translation helpful? Give feedback.
Putting the gesture handler inside the conditional in the render of the tile enabled it to work on web. Not sure why (or how I came to try that :) )