Description
The onPress function is not properly updating the fullscreen view with the user selected. The onPress function also appears to mess with the video feed appearing on the flatlist from other users. Sometime the video of the same person is repeating on multiple VideoViews at the bottom flatlist.
Errors
Which React Native Video SDK version?
react-native-zoom-video-sdk-1.1.1
Video SDK Code Snippets
{isInSession && isKeyboardOpen && (
<FlatList
style={styles.userList}
contentContainerStyle={styles.userListContentContainer}
onTouchStart={onListTouchStart}
onTouchEnd={onListTouchEnd}
data={users}
extraData={users}
renderItem={({ item }) => (
<VideoView
user={item}
focused={item.userId === fullScreenUser?.userId}
onPress={(selectedUser) => setFullScreenUser(selectedUser)}
key={item.userId}
/>
)}
keyExtractor={(item) => item.userId}
fadingEdgeLength={50}
decelerationRate={0}
snapToAlignment=“center”
snapToInterval={100}
showsHorizontalScrollIndicator={false}
horizontal
/>
)}
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
- Device: [e.g. iPhone 12]
- OS: [e.g. iOS 14]
Additional context
Add any other context about the problem here.