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

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

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