Skip to content
This repository was archived by the owner on Jan 24, 2020. It is now read-only.

Commit 56ff134

Browse files
Ishaan Parikhjoeferraro
authored andcommitted
updating imports (#30)
1 parent 819b2d4 commit 56ff134

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
var React = require('react-native');
2-
var NativeModules = React.NativeModules;
3-
var Platform = React.Platform;
1+
import React from 'react';
2+
import {NativeModules, Platform} from 'react-native';
43
var invariant = require('invariant');
54
var RNCookieManagerIOS = NativeModules.RNCookieManagerIOS;
65
var RNCookieManagerAndroid = NativeModules.RNCookieManagerAndroid;
@@ -28,4 +27,4 @@ var functions = [
2827
module.exports = {}
2928
for (var i=0; i < functions.length; i++) {
3029
module.exports[functions[i]] = CookieManager[functions[i]];
31-
}
30+
}

0 commit comments

Comments
 (0)