Skip to content

Instantly share code, notes, and snippets.

@Yassir4 Yassir4/index.js
Created Aug 13, 2019

Embed
What would you like to do?
export navigation functions Navigation/index.js
export const pushScreen = props => {
const { componentId } = props;
Navigation.push(componentId, {
component: {
name: 'PushedScreen',
},
});
};
export const openModal = () => {
Navigation.showModal({
stack: {
children: [
{
component: {
name: 'ModalScreen',
passProps: {
text: 'This is the modal screen',
},
options: {
topBar: {
title: {
text: 'Title text',
},
leftButtons: [
{
color: '#00bfff',
text: 'button',
id: 'leftButton',
},
],
},
},
},
},
],
},
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.