@ruanitto/react-native-ntp-sync
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "@ruanitto/react-native-ntp-sync", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Sync time using NTP servers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -141,3 +141,3 @@ # @ruanitto/react-native-ntp-sync (forked from [@luneo7/react-native-ntp-sync](https://github.com/luneo7/react-native-ntp-sync.git)) | ||
```javascript | ||
import clockSync from 'react-native-clock-sync'; | ||
import ntpSync from '@ruanitto/react-native-ntp-sync'; | ||
import { NetInfo } from 'react-native'; | ||
@@ -148,3 +148,3 @@ // start in offline state | ||
}; | ||
const clock = new clockSync(config); | ||
const clock = new ntpSync(config); | ||
// set initial state | ||
@@ -151,0 +151,0 @@ NetInfo.isConnected.fetch().then((isConnected) => { |
24756