The auxiliary element does not animate away when dismissing the context menu by pressing the preview element.
GaddiSunshine opened this issue · comments
Pressing the preview element causes auxiliary element to not animate away. It just waits for the context menu to close and then snaps away
Screen.Recording.2024-01-25.at.14.43.24.mov
Expected behaviour:
The auxiliary element would animate away like it does when pressing outside the preview element.
Actual behaviour:
The auxiliary element does not animate away when dismissing the context menu by pressing the preview element.
Platform:
- iOS debug configuration build
- iOS release configuration build
Versions:
"react-native": "0.72.6",
"expo": "49.0.18",
"react-native-ios-context-menu": "2.3.0",
"react-native-ios-utilities": "4.2.3",
Minimal reproducible example:
import React from 'react'
import { StyleSheet, View } from 'react-native'
import { ContextMenuView } from 'react-native-ios-context-menu'
const ContextMenuTest = () => (
<View style={styles.root}>
<ContextMenuView
menuConfig={{
menuTitle: '',
menuItems: [
{
actionKey: 'cancel',
actionTitle: 'Cancel',
},
],
}}
renderAuxiliaryPreview={() => <View style={styles.auxiliaryElement} />}
>
<View style={styles.box} />
</ContextMenuView>
</View>
)
const styles = StyleSheet.create({
root: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
box: {
height: 50,
width: 50,
backgroundColor: 'blue',
},
auxiliaryElement: {
backgroundColor: 'green',
height: 50,
width: 200,
},
})
export default ContextMenuTest