Browse Source

Move the JS module to a subfolder

Mathieu Acthernoene 7 years ago
parent
commit
d3b2991f68
3 changed files with 2 additions and 5 deletions
  1. 2
    5
      index.js
  2. 0
    0
      lib/permissions.android.js
  3. 0
    0
      lib/permissions.ios.js

+ 2
- 5
index.js View File

1
 // @flow
1
 // @flow
2
 
2
 
3
-import { Platform } from 'react-native'
4
-
5
-export default (Platform.OS === 'ios'
6
-  ? require('./index.ios')
7
-  : require('./index.android'))
3
+import Permissions from './lib/permissions'
4
+export { Permissions as default }

index.android.js → lib/permissions.android.js View File


index.ios.js → lib/permissions.ios.js View File