Created
March 18, 2021 14:50
-
-
Save nelsonprsousa/cb0788b4f93474f621a42d4efadf8239 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onPress={() => { | |
// Navigation.showModal({ | |
// component: { | |
// name: 'DescriptionScreen', | |
// options: { | |
// topBar: { | |
// visible: true, | |
// title: { | |
// text: 'Modal2', | |
// }, | |
// backButton: { | |
// color: 'red', | |
// title: 'B', | |
// visible: true, | |
// }, | |
// }, | |
// animations: { | |
// showModal: { | |
// translationX: { | |
// from: | |
// theme.mixins.width, | |
// to: 0, | |
// duration: 300, | |
// }, | |
// }, | |
// }, | |
// }, | |
// }, | |
// }); | |
Navigation.showModal({ | |
stack: { | |
children: [ | |
{ | |
component: { | |
name: 'DescriptionScreen', | |
options: { | |
statusBar: { | |
style: 'dark', | |
}, | |
topBar: { | |
visible: true, | |
title: { | |
text: 'Modal2', | |
}, | |
backButton: { | |
color: 'red', | |
title: 'B', | |
visible: true, | |
}, | |
}, | |
animations: { | |
showModal: { | |
translationX: { | |
from: | |
theme | |
.mixins | |
.width, | |
to: 0, | |
duration: 300, | |
}, | |
}, | |
}, | |
}, | |
}, | |
}, | |
], | |
}, | |
}); | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment