Closed
Description
Sample Code:
import React, { Component } from 'react';
import {View, ScrollView, Text, TextInput} from 'react-native';
export default class NestedScrollView extends Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<ScrollView style={{height:400, backgroundColor:'blue'}}>
<View style={{width:200,height:100}}>
<TextInput
placeholderTextColor={'#fff'}
placeholder={'openkeyboard'}
/>
<ScrollView style={{backgroundColor:'red'}}>
<View style={{width:100}}>
<Text>test1</Text>
<Text>test2</Text>
<Text>test3</Text>
<Text>test4</Text>
<Text>test5</Text>
<Text>test6</Text>
<Text>test7</Text>
<Text>test8</Text>
<Text>test9</Text>
<Text>test0</Text>
<Text>test1</Text>
</View>
</ScrollView>
</View>
</ScrollView>
);
}
}