damusnet / react-swipe-views

A React Component for binded Tabs and Swipeable Views

Home Page:http://damusnet.github.io/react-swipe-views/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rudin opened this issue · 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.