You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importDialog,{DialogButton}from'react-native-md-dialog';
...
<Dialogactions={[<DialogButtontext='CLOSE'onPress={()=>this.refs.dialog.close()}position='right'/>]}ref='dialog'><Viewstyle={styles.dialogConatiner}><Text>
I'm a dialog with a close button
</Text></View></Dialog>
Multiple Buttons Dialog
Android
IOS
Code
importDialog,{DialogButton}from'react-native-md-dialog';
...
<Dialogactions={[<DialogButtontext='INCREMENT'onPress={()=>this.setState({numberOfClicks: this.state.numberOfClicks+1})}/>,<DialogButtontext='OK'onPress={()=>this.refs.dialog.close()}/>,<DialogButtontext='DISABLED'disabled={true}position='left'/>]}ref='dialog'><Viewstyle={styles.dialogConatiner}><Text>
I'm a dialog with multiple btns, {this.state.numberOfClicks}</Text></View></Dialog>
Styles Dialog
Android
IOS
Code
importDialog,{DialogButton}from'react-native-md-dialog';
...
<DialogbackgroundColor='#3f51b5'titleColor='#d81b60'actions={[<DialogButtontext='DISABLED'disabled={true}position='left'color='#ffeb3b'/>,<DialogButtontext='OK'onPress={()=>this.refs.dialog.close()}color='#d81b60'/>]}ref='dialog'><Viewstyle={styles.dialogConatiner}><Text>Dialogs with custom styles</Text></View></Dialog>