Doko-Demo-Doa / react-native-shake

React Native shake event detector
MIT License
275 stars 65 forks source link

Not working at all #64

Open ghost opened 7 months ago

ghost commented 7 months ago

I tested my physical phone and I'm sure 'release' version.

"react": "18.2.0", "react-native": "^0.72.5", "react-native-shake": "^5.6.2"

useEffect(() => { Alert.alert('shake!'); RNShake.addListener(() => Alert.alert('done!')); return () => { RNShake.removeAllListeners(); }; }, []);

it only works 'Alert.alert('shake!')'

iTonyYo commented 6 months ago

I tested my physical phone and I'm sure 'release' version.

"react": "18.2.0", "react-native": "^0.72.5", "react-native-shake": "^5.6.2"

useEffect(() => { Alert.alert('shake!'); RNShake.addListener(() => Alert.alert('done!')); return () => { RNShake.removeAllListeners(); }; }, []);

it only works 'Alert.alert('shake!')'

try react-native v0.72.3

techgerm commented 6 months ago

It's not working for us either after updating to the latest version of react-native-shake:

We had to downgrade react-native-shake back to 5.5.2 for it to work.

chase-si commented 6 months ago

It's not working for us either after updating to the latest version of react-native-shake:

  • "react": "18.2.0"
  • "react-native": "0.73.7"
  • "react-native-shake": "5.6.2"

We had to downgrade react-native-shake back to 5.5.2 for it to work.

react-native-shake@5.6.2 not work at react-native@0.74.0 try install react-native-shake@5.5.2, works

Doko-Demo-Doa commented 2 months ago

New version updated, which is 6.0.0-beta.2. Can you try it?

PaoloSalta commented 1 month ago

Same issue also with the 6.0.0-beta.2 version "react": "18.2.0", "react-native": "0.73.6",

NiccoloCase commented 1 month ago

same issue, and I can't build with @5.5.2