From 31887839cddf7c9b40e26c53c07d8df4701edcd7 Mon Sep 17 00:00:00 2001 From: Cristian Gomez Date: Thu, 20 Sep 2018 05:18:49 -0400 Subject: [PATCH 1/3] fix: add right title to ts definition (#3279) TS definition lacks of rightTitle on the definition of Scene. --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index 4a9e23365..e06194661 100644 --- a/index.d.ts +++ b/index.d.ts @@ -50,6 +50,7 @@ interface SceneProps extends React.Props { renderLeftButton?: React.ComponentType; renderRightButton?: React.ComponentType; renderBackButton?: React.ComponentType; + rightTitle?: string; rightButtonImage?: Image; rightButtonTextStyle?: StyleProp; success?: (() => void) | string; From 71c9865d880404a9a2ed29d9b8bc593768b3572a Mon Sep 17 00:00:00 2001 From: Michele Bombardi Date: Thu, 20 Sep 2018 11:19:02 +0200 Subject: [PATCH 2/3] Typings: RouterProps createReducer, onStateChange, getSceneStyle, uriPrefix; Reducer. (#3281) --- index.d.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index e06194661..6b42b7c6f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,14 +7,22 @@ import { StyleProp, Image, ViewStyle, TextStyle, ImageStyle } from 'react-native export var Router: RouterStatic; export type Router = RouterStatic; +// Reducer +export var Reducer: any; +export type Reducer = any; + // Router interface RouterProps extends React.Props { - sceneStyle?: StyleProp; - backAndroidHandler?: Function; - wrapBy?: Function; - scenes?: any; + sceneStyle?: StyleProp; + backAndroidHandler?: Function; + wrapBy?: Function; + scenes?: any; + createReducer?: Function; + onStateChange?: Function; + getSceneStyle?: Function; + uriPrefix?: string; } -interface RouterStatic extends React.ComponentClass {} +interface RouterStatic extends React.ComponentClass { } // Scene export var Scene: SceneStatic; From 7acfcc58efe044a07a42b29168063f7a84288b36 Mon Sep 17 00:00:00 2001 From: Bahaa Jr Date: Fri, 21 Sep 2018 09:29:08 +0200 Subject: [PATCH 3/3] Remove Gradle warning (#3284) WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html --- Example/android/app/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Example/android/app/build.gradle b/Example/android/app/build.gradle index cc6f90b71..90cc7727a 100644 --- a/Example/android/app/build.gradle +++ b/Example/android/app/build.gradle @@ -126,9 +126,9 @@ android { } dependencies { - compile fileTree(dir: "libs", include: ["*.jar"]) - compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" - compile "com.facebook.react:react-native:+" // From node_modules + implementation fileTree(dir: "libs", include: ["*.jar"]) + implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" + implementation "com.facebook.react:react-native:+" // From node_modules } // Run this once to be able to run the application with BUCK