diff --git a/Example/android/app/build.gradle b/Example/android/app/build.gradle index fdba971..e47ede4 100644 --- a/Example/android/app/build.gradle +++ b/Example/android/app/build.gradle @@ -95,7 +95,7 @@ def enableProguardInReleaseBuilds = false android { compileSdkVersion 27 - buildToolsVersion "27.0.3" + buildToolsVersion '28.0.3' defaultConfig { applicationId "com.example" diff --git a/Example/android/build.gradle b/Example/android/build.gradle index b40839f..77e1057 100644 --- a/Example/android/build.gradle +++ b/Example/android/build.gradle @@ -2,13 +2,13 @@ buildscript { repositories { - jcenter() + google() maven { url "https://maven.google.com" } maven { url "https://jitpack.io" } - google() + jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.3' + classpath 'com.android.tools.build:gradle:3.2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -18,12 +18,12 @@ buildscript { allprojects { repositories { mavenLocal() - jcenter() maven { url "https://maven.google.com" } maven { url "https://jitpack.io" } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } + jcenter() } } diff --git a/Example/android/gradle/wrapper/gradle-wrapper.properties b/Example/android/gradle/wrapper/gradle-wrapper.properties index 47ad315..a4c7258 100644 --- a/Example/android/gradle/wrapper/gradle-wrapper.properties +++ b/Example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed May 30 18:27:15 IST 2018 +#Thu Nov 01 11:05:42 IST 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip diff --git a/RNAppTour.js b/RNAppTour.js index d92c052..245dec9 100644 --- a/RNAppTour.js +++ b/RNAppTour.js @@ -71,6 +71,13 @@ class AppTourView { throw new Error( 'Provided tour view reference is undefined or null, please add a preliminary validation before adding for tour.' ) + + if ( + view._reactInternalFiber === undefined || + view._reactInternalFiber === null) { + throw new Error("Tour view does not have React Internal Fiber."); + } + if ( view._reactInternalFiber.key === undefined || view._reactInternalFiber.key === null diff --git a/android/build.gradle b/android/build.gradle index a98fd36..bf4bf85 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' + classpath 'com.android.tools.build:gradle:3.2.1' } } @@ -14,7 +14,7 @@ apply plugin: 'com.android.library' android { compileSdkVersion 27 - buildToolsVersion "27.0.3" + buildToolsVersion '28.0.3' defaultConfig { minSdkVersion 16 diff --git a/package.json b/package.json index c58b7c0..9160e43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-app-tour", - "version": "0.0.16", + "version": "0.0.17", "description": "React Native: Native App Tour Library", "repository": { "type": "git",