From deae2cb1a6bb8434ed84efaea7f8ab51928b6fc5 Mon Sep 17 00:00:00 2001 From: Mikey S Date: Fri, 3 Mar 2017 11:01:22 +0000 Subject: [PATCH] Fix issue with android releases crashing. --- index.android.js | 2 +- main.js | 2 ++ package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 main.js diff --git a/index.android.js b/index.android.js index 2bdf384..2e49cff 100644 --- a/index.android.js +++ b/index.android.js @@ -5,7 +5,7 @@ 'use strict'; var RCTBrowser = { - test: function() { + open: function() { alert('Not yet implemented for Android.'); } }; diff --git a/main.js b/main.js new file mode 100644 index 0000000..a49e042 --- /dev/null +++ b/main.js @@ -0,0 +1,2 @@ +// Use platform specific index.js file. +export default require('./index'); \ No newline at end of file diff --git a/package.json b/package.json index ce1eb56..ee533f2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-native-browser", "version": "0.6.2", "description": "Full-featured web browser module for React Native apps, based on TOWebViewController", - "main": "index.ios.js", + "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },