我如何让我的模式显示从左到右,就像抽屉出来一样。我使用的是“react-native”中的模式,但我也安装了https://github.com/react-native-community/react-native-modal/blob/master/README.md中的react-native-modal模块。
这是我的代码
<Modal visible={this.state.modalOpen} animationType='slide' transparent={true} >
<ShortCut />
</Modal>发布于 2020-08-29 00:18:15
在react-native模式中,u可以使用从右到左的animationIn和animationOut.Incase,使用slideInRight
import React from 'react';
import Modal from 'react-native-modal';
return (
<Modal
testID={'modal'}
isVisible={this.isVisible()}
animationIn="slideInLeft"
animationOut="slideOutRight">
<ShortCut />
</Modal>
);https://stackoverflow.com/questions/63636529
复制相似问题