You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.
I have an application where the entry file is index.js (i.e. i'm not using index.android.js nor index.ios.js).
I'm a bit surprised about the choice to split your library into two projects react-native-lock-ios and react-native-lock-android, this decision seems to be more developer friendly than user friendly.
That being said, how can I import both libraries in my index.js file? I tried many things like:
(which of course doesn't work because es6 does not allows dynamic import/export.)
The text was updated successfully, but these errors were encountered:
julesbou
changed the title
how to use both ios and android libs in the same file
how to use both ios and android libs in the same entry file
Mar 30, 2016
Why not add another js file that just does the imports and have one version of that for android and one for ios and then export Auth0Lock from that file.
I have an application where the entry file is
index.js
(i.e. i'm not usingindex.android.js
norindex.ios.js
).I'm a bit surprised about the choice to split your library into two projects
react-native-lock-ios
andreact-native-lock-android
, this decision seems to be more developer friendly than user friendly.That being said, how can I import both libraries in my
index.js
file? I tried many things like:(which of course doesn't work because es6 does not allows dynamic import/export.)
The text was updated successfully, but these errors were encountered: