Learn React, React Native, JavaScript and more with in-depth tutorials.
console.disableYellowBox to disable the yellow box entirely. We'll also use console.ignoredYellowBox to selectively disabled warnings.AutoSizer component from react-virtualized to automatically measure the width/height of our content area. We'll then use the List component to render our set of data as a virtualized list into the DOM using windowing.CellMeasurer and CellMeasurerCache to automatically calculate and cache the height of a row. This will allow us to remove the predefined rowHeight on list and allow for dynamically sized rows.react-native-video player that is paused when it is not visible but when scrolled into view starts playing the video. We'll also show how to add a small ending threshold so once the video is only partially out of view it will pause.repeat property, and also the helper StyleSheet.absoluteFill property so we do not need to replicate styles. We'll then show how to place a login form on top of the looping video.