react-native-onyx
react-native-onyx copied to clipboard
Using onyx in an app that doesn't use lodash by itself fails
When trying to use onyx in a blank new app you get failures like these:
I think the main problem / reason for that is that onyx uses these dependencies but doesn't list them as dependency:
https://github.com/Expensify/react-native-onyx/blob/d0cacbff3cc850b64ab235d2b4e2ca6be043f9bd/package.json#L41-L45
I guess that has been unnoticed as the NewDot app ships with lodash, thus those imports can resolve. I am currently trying to test / use onyx in a separate context than NewDot and this prevents me from using it (will put up a PR in a moment).
@hannojg I am having the same issue you mentioned. How can I fix it?