Browse Source

pass titleImage on the declarative version of the "start app" convenient methods

Artal Druk 8 years ago
parent
commit
4ee4244a58
2 changed files with 5 additions and 2 deletions
  1. 2
    2
      package.json
  2. 3
    0
      src/platformSpecific.ios.js

+ 2
- 2
package.json View File

7
     "type": "git",
7
     "type": "git",
8
     "url": "https://github.com/wix/react-native-navigation.git"
8
     "url": "https://github.com/wix/react-native-navigation.git"
9
   },
9
   },
10
-  "version": "0.2.1",
10
+  "version": "0.2.2",
11
   "description": "React Native Navigation - truly native navigation for iOS and Android",
11
   "description": "React Native Navigation - truly native navigation for iOS and Android",
12
   "nativePackage": true,
12
   "nativePackage": true,
13
   "bugs": {
13
   "bugs": {
21
     "react-native": ">=0.19.0"
21
     "react-native": ">=0.19.0"
22
   },
22
   },
23
   "dependencies": {
23
   "dependencies": {
24
-    "react-native-controllers": "^1.3.4"
24
+    "react-native-controllers": "^1.3.5"
25
   },
25
   },
26
   "optionalDependencies": {
26
   "optionalDependencies": {
27
     "react-redux": "*"
27
     "react-redux": "*"

+ 3
- 0
src/platformSpecific.ios.js View File

57
                 <NavigationControllerIOS
57
                 <NavigationControllerIOS
58
                   id={navigatorID}
58
                   id={navigatorID}
59
                   title={tab.title}
59
                   title={tab.title}
60
+                  titleImage={tab.titleImage}
60
                   component={tab.screen}
61
                   component={tab.screen}
61
                   passProps={{
62
                   passProps={{
62
                     navigatorID: navigatorID,
63
                     navigatorID: navigatorID,
120
         <NavigationControllerIOS
121
         <NavigationControllerIOS
121
           id={navigatorID}
122
           id={navigatorID}
122
           title={screen.title}
123
           title={screen.title}
124
+          titleImage={screen.titleImage}
123
           component={screen.screen}
125
           component={screen.screen}
124
           passProps={{
126
           passProps={{
125
             navigatorID: navigatorID,
127
             navigatorID: navigatorID,
345
         <NavigationControllerIOS
347
         <NavigationControllerIOS
346
           id={navigatorID}
348
           id={navigatorID}
347
           title={params.title}
349
           title={params.title}
350
+          titleImage={params.titleImage}
348
           component={params.screen}
351
           component={params.screen}
349
           passProps={passProps}
352
           passProps={passProps}
350
           style={navigatorStyle}
353
           style={navigatorStyle}