git ssb

1+

Daan Patchwork / manyverse



Commit e89a101c2d3d2d87d2e97f18f7b93e504d680792

dx: update cycle-native-navigation

Andre Staltz committed on 1/4/2020, 2:37:13 PM
Parent: 05eda29680f83ea9762edc2b87a976dec7bbb2c2

Files changed

package-lock.jsonchanged
package.jsonchanged
src/frontend/index.tschanged
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 758698 bytes
New file size: 758698 bytes
package.jsonView
@@ -43,9 +43,9 @@
4343 "cycle-native-asyncstorage": "2.0.0",
4444 "cycle-native-clipboard": "1.0.0",
4545 "cycle-native-keyboard": "1.2.0",
4646 "cycle-native-linking": "1.1.0",
47- "cycle-native-navigation": "6.1.0",
47+ "cycle-native-navigation": "7.0.0",
4848 "cycle-native-share": "1.1.0",
4949 "cycle-native-toastandroid": "1.1.0",
5050 "mdast-normalize-react-native": "3.2.x",
5151 "nodejs-mobile-react-native": "0.5.0",
src/frontend/index.tsView
@@ -57,8 +57,9 @@
5757 import {secretOutput} from './screens/secret-output/index';
5858 import {secretInput} from './screens/secret-input/index';
5959 import {Palette} from './global-styles/palette';
6060 import {Typography} from './global-styles/typography';
61+import {Options, Layout} from 'react-native-navigation';
6162
6263 export const screens: {[k in Screens]?: (so: any) => any} = {
6364 [Screens.Welcome]: withState(welcome),
6465 [Screens.Central]: withState(central),
@@ -96,10 +97,9 @@
9697 splashscreen: makeSplashScreenDriver(),
9798 exit: makeExitDriver(),
9899 };
99100
100-export const welcomeLayout = {
101- root: {
101+export const welcomeLayout: Layout = {
102102 stack: {
103103 id: 'mainstack',
104104 children: [
105105 {
@@ -109,15 +109,13 @@
109109 },
110110 },
111111 ],
112112 },
113- },
114113 };
115114
116-export const centralLayout = {
115+export const centralLayout: Layout = {
117116 sideMenu: {
118117 left: {
119- visible: false,
120118 component: {name: Screens.Drawer},
121119 },
122120 center: {
123121 stack: {
@@ -134,14 +132,19 @@
134132 },
135133 },
136134 };
137135
138-export const defaultNavOptions = {
136+export const defaultNavOptions: Options = {
139137 statusBar: {
140138 visible: true,
141139 backgroundColor: Palette.backgroundBrandStrong,
142140 style: 'light',
143141 },
142+ sideMenu: {
143+ left: {
144+ shouldStretchDrawer: false,
145+ },
146+ },
144147 layout: {
145148 backgroundColor: Palette.backgroundVoid,
146149 orientation: ['portrait', 'landscape'],
147150 },
@@ -152,9 +155,9 @@
152155 animate: false,
153156 height: 0,
154157 borderHeight: 0,
155158 elevation: 0,
156- buttonColor: Palette.textForBackgroundBrand,
159+ leftButtonColor: Palette.textForBackgroundBrand,
157160 background: {
158161 color: Palette.backgroundBrand,
159162 },
160163 title: {

Built with git-ssb-web