Browse Source

Update styling.md

Yogev B 6 years ago
parent
commit
0c2b10ed95
No account linked to committer's email address
1 changed files with 13 additions and 5 deletions
  1. 13
    5
      docs/docs/styling.md

+ 13
- 5
docs/docs/styling.md View File

70
     leftButtons: [{
70
     leftButtons: [{
71
       id: 'buttonOne',
71
       id: 'buttonOne',
72
       icon: require('icon.png'),
72
       icon: require('icon.png'),
73
-      component: 'example.CustomButtonComponent',
73
+      component: {
74
+        name: 'example.CustomButtonComponent'
75
+      },
74
       title: 'Button one',
76
       title: 'Button one',
75
       enabled: true,
77
       enabled: true,
76
       disableIconTint: false,
78
       disableIconTint: false,
93
     backButtonHidden: false,
95
     backButtonHidden: false,
94
     backButtonTitle: 'Back',
96
     backButtonTitle: 'Back',
95
     hideBackButtonTitle: false,
97
     hideBackButtonTitle: false,
96
-    componentName: 'example.CustomTopBar',
98
+    component: {
99
+      name: 'example.CustomTopBar'
100
+    },
97
     title: {
101
     title: {
98
       text: 'Title',
102
       text: 'Title',
99
       fontSize: 14,
103
       fontSize: 14,
100
       color: 'red',
104
       color: 'red',
101
       fontFamily: 'Helvetica',
105
       fontFamily: 'Helvetica',
102
-      component: 'example.CustomTopBarTitle',
103
-      componentAlignment: 'center',
106
+      component: {
107
+        name: 'example.CustomTopBarTitle',
108
+        alignment: 'center'
109
+      }
104
     },
110
     },
105
     subtitle: {
111
     subtitle: {
106
       text: 'Title',
112
       text: 'Title',
111
     },
117
     },
112
     background: {
118
     background: {
113
       color: '#00ff00',
119
       color: '#00ff00',
114
-      component: 'example.CustomTopBarBackground'
120
+      component: {
121
+        name: 'example.CustomTopBarBackground'
122
+      }
115
     }
123
     }
116
   },
124
   },
117
   bottomTabs: {
125
   bottomTabs: {