We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参考Ant Design Mobile RN
The text was updated successfully, but these errors were encountered:
feat:添加modal中间显示[#627]
f1696df
Modal的placement添加了middle值,用以控制居中展示,请安装 @uiw/[email protected] 试一下效果 @WangShayne
Modal
placement
middle
import React, { useState, Fragment } from 'react'; import { View, Text, SafeAreaView } from 'react-native'; import { Modal, Button,Grid, Icon } from '@uiw/react-native'; function ButtonGroupView() { const [visible,setVisible]= useState(false) const data = Array.from(new Array(24)).map((_val, i) => { return { icon: <Icon name="heart-on" color="red" />, text: `${i}`} }); return ( <Fragment> <Modal visible={visible} placement='middle'> <SafeAreaView style={{width:600}}> <View> <Grid data={data} columns='6' hasLine={false}/> <Button onPress={() => setVisible(false)}> 隐藏中间弹出的模态框 </Button> </View> </SafeAreaView> </Modal> <Button onPress={() => setVisible(true)}> 中间显示 </Button> </Fragment> ); } export default ButtonGroupView
Sorry, something went wrong.
No branches or pull requests
参考Ant Design Mobile RN
The text was updated successfully, but these errors were encountered: