Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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',
- },
- ],
- },
- },
- },
- },
- ],
- },
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement