importReactfrom'react';
import{SafeAreaView,
StyleSheet,
Text,
View,
}from'react-native';
functionApp(){return(<SafeAreaView><Viewstyle={styles.scrollView}><Textstyle={styles.text}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</Text></View></SafeAreaView>);
};
conststyles = StyleSheet.create({scrollView:{backgroundColor: 'pink',
marginHorizontal:20,
},
text:{fontSize:42,
}});
export defaultApp;
importReactfrom'react';
import{SafeAreaView,
StyleSheet,
Text,
ScrollView,
}from'react-native';
functionApp(){return(<SafeAreaView><ScrollViewstyle={styles.scrollView}><Textstyle={styles.text}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</Text></ScrollView></SafeAreaView>);
};
conststyles = StyleSheet.create({scrollView:{backgroundColor: 'pink',
marginHorizontal:20,
},
text:{fontSize:42,
}});
export defaultApp;
importReactfrom'react';
import{SafeAreaView,
StyleSheet,
Text,
ScrollView,
TextInput,
}from'react-native';
functionApp(){return(<SafeAreaView><ScrollViewstyle={styles.scrollView}keyboardDismissMode='on-drag'><TextInputstyle={styles.input} /><Textstyle={styles.text}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</Text></ScrollView></SafeAreaView>);
};
conststyles = StyleSheet.create({scrollView:{backgroundColor: 'pink',
marginHorizontal:20,
},
text:{fontSize:42,
},
input:{height:40,
margin:12,
borderWidth:1,
padding:10,
}});
export defaultApp;
importReact, {useRef}from'react';
import{SafeAreaView,
StyleSheet,
Text,
ScrollView,
Button,
}from'react-native';
functionApp(){constscrollViewRef = useRef();
functionhandleScrollToEnd(){scrollViewRef.current.scrollToEnd();
}return(<SafeAreaView><ScrollViewstyle={styles.scrollView}ref={scrollViewRef}><Buttontitle="To Bottom"onPress={handleScrollToEnd}/><Textstyle={styles.text}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</Text></ScrollView></SafeAreaView>);
};
conststyles = StyleSheet.create({scrollView:{backgroundColor: 'pink',
marginHorizontal:20,
},
text:{fontSize:42,
}});
export defaultApp;