KPS250 / react-native-flatlist-slider

React Native Image Slider with FlatList
186 stars 46 forks source link

Indicator is not defined #3

Closed dj-ds closed 4 years ago

dj-ds commented 4 years ago

Facing this when Installed the library and imported Simulator Screen Shot - iPhone 11 - 2020-09-08 at 14 48 45

dwijonarko commented 4 years ago

Is this already fixed?

just restart server and re run npx react-native run-android again to fix this

petrovi4 commented 4 years ago

I have a similar error. Only, it appears when I try to run debug for the web platform

Screenshot 2020-10-31 at 16 10 22

upd. It seems that the reason is that the compiler does not correctly perceive this format of the component definition. There's no mistake:

export default function Indicator({
    itemCount,
    currentIndex,
    indicatorStyle,
    indicatorContainerStyle,
    indicatorActiveColor,
    indicatorInActiveColor,
    indicatorActiveWidth = 6,
}) {
    return (
...