Skip to content

Instantly share code, notes, and snippets.

@nelsonprsousa
Created March 18, 2021 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelsonprsousa/cb0788b4f93474f621a42d4efadf8239 to your computer and use it in GitHub Desktop.
Save nelsonprsousa/cb0788b4f93474f621a42d4efadf8239 to your computer and use it in GitHub Desktop.
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