react native scrollview disable scrollbar code example
Example 1: react native hide scroll indicator
<ScrollView
showsVerticalScrollIndicator ={false}
showsHorizontalScrollIndicator={false}
/>
Example 2: react native scrollview fixed header
if (!NativeModules.F8Scrolling) {
var distance = EMPTY_CELL_HEIGHT - this.state.stickyHeaderHeight;
var translateY = 0; this.state.anim.interpolate({
inputRange: [0, distance],
outputRange: [distance, 0],
extrapolateRight: 'clamp',
});
transform = [{translateY}];
}