|
@@ -30,6 +30,12 @@ Navigation.startTabBasedApp({
|
30
|
30
|
screen: 'example.FirstTabScreen', // unique ID registered with Navigation.registerScreen
|
31
|
31
|
icon: require('../img/one.png'), // local image asset for the tab icon unselected state (optional on iOS)
|
32
|
32
|
selectedIcon: require('../img/one_selected.png'), // local image asset for the tab icon selected state (optional, iOS only. On Android, Use `tabBarSelectedButtonColor` instead)
|
|
33
|
+ iconInsets: { // add this to change icon position (optional, iOS only).
|
|
34
|
+ top: 6, // optional, default is 0.
|
|
35
|
+ left: 0, // optional, default is 0.
|
|
36
|
+ bottom: -6, // optional, default is 0.
|
|
37
|
+ right: 0 // optional, default is 0.
|
|
38
|
+ },
|
33
|
39
|
title: 'Screen One', // title of the screen as appears in the nav bar (optional)
|
34
|
40
|
navigatorStyle: {}, // override the navigator style for the tab screen, see "Styling the navigator" below (optional),
|
35
|
41
|
navigatorButtons: {} // override the nav buttons for the tab screen, see "Adding buttons to the navigator" below (optional)
|
|
@@ -157,4 +163,4 @@ This is an internal function you probably don't want to use directly. If your sc
|
157
|
163
|
|
158
|
164
|
```js
|
159
|
165
|
Navigation.registerScreen('example.AdvancedScreen', () => AdvancedScreen);
|
160
|
|
-```
|
|
166
|
+```
|