Issues with Zoom react native sdk example app. VideoView is not updating properly

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:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. 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.

This topic was automatically closed after 30 days. New replies are no longer allowed.