deanhet / react-native-text-ticker

React Native Text Ticker/Marquee Component
MIT License
444 stars 75 forks source link

Warning: Invalid arguments supplied to oneOf #83

Closed incrementing closed 3 years ago

incrementing commented 3 years ago
ERROR    Warning: Invalid arguments supplied to oneOf, expected an array, got 3 arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).

Caused by this code from index.js line 44:

animationType:     PropTypes.oneOf('auto', 'scroll', 'bounce'),
deanhet commented 3 years ago

Ah, that's embarrassing, I'd just merged that bug in. Thanks for catching it early though. Will merge and push out a fix.