From ca42cbc944bd0a643bd5dd0de667525dbaf89377 Mon Sep 17 00:00:00 2001 From: yongtheskill Date: Fri, 23 Jul 2021 22:25:00 +0800 Subject: [PATCH] Update webview import Import webview from react-native-webview instead of react-native --- index.js | 3 ++- package.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 459da26..6ff4f48 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ import React from 'react'; -import { View, WebView } from 'react-native'; +import { View } from 'react-native'; +import { WebView } from 'react-native-webview'; var js = ` var haveEvents = 'GamepadEvent' in window; diff --git a/package.json b/package.json index d202ac7..d3403cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-gamepad-controller", - "version": "0.1.0", + "version": "0.1.1", "description": "A react-native component to interface with gamepads/joysticks/controllers without using native code.", "main": "index.js", "repository": { @@ -21,6 +21,7 @@ }, "homepage": "https://github.com/domstoppable/react-native-gamepad-controller", "dependencies": { - "react": "16.3.1" + "react": "16.3.1", + "react-native-webview": "11.6.2" } }