FuYaoDe/react-native-app-intro

Custom views wont work with just 1 slide

nonotest opened this issue · 0 comments

Hello, most likely an isolated bug since there would usually be more than 1 slide but anyway.
you have:

const childrens = this.props.children
pages = childrens.map((children, i)

which will fail if there is just 1 slide since this.props.children is not an array in this case.