react-native-actions-sheet
react-native-actions-sheet copied to clipboard
Closing animation not working when closing
Thank you develop this Action Sheet. I am showing with SheetManager.show("MessageTypes"). It is working perfectly. But when I closed with SheetManager.hide("MessageTypes") function in the ActionSheet element, not working animations. It is closing suddenly.
codes:
<ActionSheet
id={props.sheetId}
statusBarTranslucent={false}
drawUnderStatusBar={false}
gestureEnabled={true}
springOffset={50}
defaultOverlayOpacity={0.3}
containerStyle={{
padding: 15,
}}
>
<View>
<TouchableOpacity style={{...styles.messageTypeRow, borderTopWidth: 0.5, borderColor: ULAK_COLORS.blueDark}} activeOpacity={0.8} onPress={()=>{
props.setMessageTypeIdSendingMessage(1)
SheetManager.hide("MessageTypes")
}}>
<View>
<MaterialCommunityIcons name="message-text-outline" size={48} color={ULAK_COLORS.blueDark} />
</View>
<View style={{...styles.description}}>
<Text style={{fontWeight: "bold"}}>Normal Mesaj</Text>
<Text style={{color: "#232323"}}>Normal mesajlaşma şeklidir.</Text>
</View>
</TouchableOpacity>
</View>
</ActionSheet>
+1
+1