I have a simple piece of code that's just a TouchableOpacity with a onLongPress prop, but it does not seem to be working.
<TouchableOpacity delayLongPress={10} onLongPress={()=>{console.log("pressed")}} activeOpacity={0.6}>
<Text>BUTTON</Text>
</TouchableOpacity>
I've tried removing the delay prop but that still doesn't work. Changing onLongPress to onPress does seem to work however, but I want the long press functionality. I'm testing this on an Android simulator.
You can test on a IOS simulator or in the release package.