Skip to content

Instantly share code, notes, and snippets.

@35d
Created January 15, 2019 06:55
Show Gist options
  • Save 35d/189c8ea1e9f132607b39854254854bca to your computer and use it in GitHub Desktop.
Save 35d/189c8ea1e9f132607b39854254854bca to your computer and use it in GitHub Desktop.
{
"push": {
"prefix": "push",
"body": [
"Navigation.push(componentId, {",
" component: {",
" name: '',",
" passProps: {},",
" options: {",
" topBar: {",
" title: {",
" text: '',",
" },",
" },",
" },",
" },",
"});"
],
"description": ""
},
"modal": {
"prefix": "modal",
"body": [
"Navigation.showModal({",
" stack: {",
" children: [{",
" component: {",
" name: 'example.ModalScreen',",
" passProps: {",
" text: 'stack with one child'",
" },",
" options: {",
" topBar: {",
" title: {",
" text: 'Modal'",
" }",
" }",
" }",
" }",
" }]",
" }",
"});",
""
],
"description": ""
},
"mergeOptions": {
"prefix": "mergeOptions",
"body": [
"Navigation.mergeOptions(this.props.componentId, {",
" topBar: {",
" visible: true,",
" title: {",
" text: 'Title',",
" },",
" },",
" bottomTabs: {},",
" bottomTab: {},",
" sideMenu: {},",
" overlay: {},",
"});",
""
],
"description": ""
},
"componentId": {
"prefix": "componentId",
"body": [
"const { componentId } = this.props;"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment