bolan9999 / react-native-largelist

The best large list component for React Native.
https://bolan9999.github.io/react-native-largelist/
MIT License
2.32k stars 261 forks source link

There is no deceleration effect #457

Closed fredmanxu closed 2 years ago

fredmanxu commented 2 years ago
  1. Dev OS: windows 10
  2. Target OS: Mi8 Lite
  3. Real Device
  4. package.json
    "react-native": "^0.63.3",
    "react-native-largelist-v3": "^3.1.0-rc.1",
    "react-native-spring-scrollview": "^3.0.1-rc.5",
  5. Example code
    render() {
        const {data} = this.state
        return (
            <View style={[{flex: 1}]}>
                <LargeList
                    bounces={Platform.OS === 'ios'}
                    showsVerticalScrollIndicator={false}
                    data={data}
                    groupCount={8}
                    ref={ref => (this._list = ref)}
                    renderSection={this.renderSection}
                    renderIndexPath={this.renderItem}
                    heightForSection={() => SECTION_HEIGHT}
                    getItemLayout={(data, index) => (
                        {length: ITEM_HEIGHT, offset: ITEM_HEIGHT * index, index}
                    )}
                    heightForIndexPath={() => ITEM_HEIGHT}
                />
            </View>
        )
    }
fredmanxu commented 2 years ago

Sorry,It's my problem,Because I accidentally turned off the transition animation in the developer options.