After adding this package as a dependency, when running our tests we were getting this:
console.error node_modules/react-native/Libraries/JavaScriptAppEngine/Initialization/ExceptionsManager.js:78
Warning: Invalid argument supplied to oneOf, expected an instance of array.
It was due to PropTypes.oneOf(PropTypes.number, PropTypes.string) which has some problems because oneOf takes an array, and oneOf is just for enums anyway, oneOfType is for types.
@mikelovesrobots Thanks for this, sorry for delay in reply. Sadly I'm not working with RN anymore but thank you for keeping this module up to date 😄
After adding this package as a dependency, when running our tests we were getting this:
It was due to
PropTypes.oneOf(PropTypes.number, PropTypes.string)
which has some problems becauseoneOf
takes an array, andoneOf
is just for enums anyway,oneOfType
is for types.No big deal. Anyway, here's the fix.
Thanks for making ReactNativeSmartScrollView!