damusnet/react-swipe-views

The example is not functional in Safari (both desktop and mobile)

rudin opened this issue · 1 comments

The example works great in Chrome but is not functional in Safari (both desktop and mobile). Might have to do with Babel?
The error says: TypeError: undefined is not a function (evaluating 'Number.isInteger(selectedIndex)')

Nice catch! Number.isInteger() is not supported in Safari but it is in Chrome and Firefox where I tested the examples. Babel provides a polyfill for those methods that can be included via Browserify or in the Browser. I'll add it in the examples and mention it in the doc.