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
I was trying to use it to create a theme for react-native-web with it aliased in webpack to react-native. Unfortunately, 'react-native/lib/deepDiffer' doesn't exist in react-native-web.
I'm not sure what the best solution is...depend on another library already in npm, to write your own, or to publish Facebook's deepDiffer as a separate npm module to avoid this mismatch?
This solution would work if I install react-native in addition to react-native-web (which doesn't require react-native).
Ideally, for react-native-theme to be compatible with react-native-web, react-native-theme would be compatible with either library without both being installed (including removing the peerDependency on react-native in react-native-theme).
This is good as a work around, but maybe not a general purpose solution? I guess it depends on your goals for the library if you want to go as far as a fully replaceable react-native with react-native-web.
Activity
doanndd commentedon Sep 27, 2016
Thank you for reporting!
I have updated to new version. Now you can use with
react-native-webby adding this code to yourwebpack.config.jsfile:doanndd commentedon Sep 28, 2016
If you want to see an example, please go to https://github.com/apentle/react-native-theme-example
And a live web demo in https://rawgit.com/apentle/react-native-theme-example/master/web/index.html
kmalakoff commentedon Sep 28, 2016
Thank you for the suggestion and pointers.
This solution would work if I install react-native in addition to react-native-web (which doesn't require react-native).
Ideally, for react-native-theme to be compatible with react-native-web, react-native-theme would be compatible with either library without both being installed (including removing the peerDependency on react-native in react-native-theme).
This is good as a work around, but maybe not a general purpose solution? I guess it depends on your goals for the library if you want to go as far as a fully replaceable react-native with react-native-web.
Thank you!
doanndd commentedon Sep 29, 2016
Thank you for the advice. I'll think about it.