We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i tried to swipe list with basic example
but i couldn't change hidden item's height. if i put static height to button, it disapeared.. i want to set full height like rowFront. help me!!
<SwipeListView data={records} inverted keyExtractor={(item) => item.id} disableRightSwipe renderItem={(data, rowMap) => ( <View style={styles.rowFront}> <Text>{data.item.text}</Text> </View> )} renderHiddenItem={(data, rowMap) => ( <View style={styles.rowBack}> <Text>Left</Text> <TouchableOpacity style={[styles.backRightBtn, styles.backRightBtnLeft]} onPress={() => closeRow(rowMap, data.item.id)}> <Text>Close</Text> </TouchableOpacity> <TouchableOpacity style={[styles.backRightBtn, styles.backRightBtnRight]} onPress={() => {}}> <Text>Delete</Text> </TouchableOpacity> </View> )} rightOpenValue={-150} style={{flex: 1}} contentContainerStyle={{ justifyContent: 'flex-end', marginHorizontal: sizes.SIDE_PADDING, paddingTop: sizes.SIDE_PADDING, }} />
const styles = StyleSheet.create({ rowFront: { backgroundColor: '#CCC', justifyContent: 'center', padding: 20, }, rowBack: { alignItems: 'center', backgroundColor: '#DDD', flex: 1, flexDirection: 'row', justifyContent: 'space-between', paddingLeft: 30, }, backRightBtn: { alignItems: 'center', top: 0, bottom: 0, justifyContent: 'center', position: 'absolute', width: 75, }, backRightBtnLeft: { backgroundColor: 'blue', right: 75, }, backRightBtnRight: { backgroundColor: 'red', right: 0, }, });
The text was updated successfully, but these errors were encountered:
Huurrray, wondering how you fixed this problem. I am new to this component and having the same issue.
Sorry, something went wrong.
recalculateHiddenLayout={true}
Having the same issue even while using recalculateHiddenLayout={true}
detailed info posted here also
No branches or pull requests
i tried to swipe list with basic example
but i couldn't change hidden item's height.
if i put static height to button, it disapeared..
i want to set full height like rowFront.
help me!!
The text was updated successfully, but these errors were encountered: