"ScrollView" like component in React JS?
You can try giving the parent container (wrapperDiv
) a height, say 500px and also set overflow-y
to be scroll
:
<div styles={{ height: '500px', overflowY: 'scroll' }} style={styles.wrapperDiv}>
...
</div>