diff --git a/index.js b/index.js index 0a08e98..1e091be 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,4 @@ -import {NativeModules} from 'react-native' -const {WebSocketModule} = NativeModules; +import WebSocketModule from 'react-native/Libraries/WebSocket/NativeWebSocketModule'; let settings = { /** The number of milliseconds to delay before attempting to reconnect. */ diff --git a/package.json b/package.json index ff2e9eb..b187618 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,11 @@ { - "name": "react-native-reconnecting-websocket", - "version": "1.0.3", + "name": "@react-native-oh-tpl/react-native-reconnecting-websocket", + "version": "1.0.3-0.0.1", "description": "websocket module", "main": "index.js", + "harmony": { + "alias": "react-native-reconnecting-websocket" + }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, @@ -16,4 +19,4 @@ "url": "https://github.com/React-Sextant/react-native-reconnecting-websocket/issues" }, "homepage": "https://github.com/React-Sextant/react-native-reconnecting-websocket#readme" -} +} \ No newline at end of file