React Native vertical ScrollView
in this tutorial we create vertical ScrollView.
App Name: Test
Component Name: App.js
-----------------------------------------------------------------------------------------------------
import React, { Component } from 'react';
import {
StyleSheet,
Button,
ScrollView,
Text,
} from 'react-native';
class App extends Component {
onPressButton() {
alert('You Clicked ReactNative King button ')
}
render() {
return (
<ScrollView>
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
<Text style={{fontSize:22}}>Welcome React Native King </Text>
<Button title={'Click Me'} onPress={this.onPressButton} />
<Text style={{fontSize:21}}>Welcome React Native Pess Me Button </Text>
<Button title={'Press Me'} onPress={this.onPressButton} />
</ScrollView>
)
}
}
export default App;
Comments
Post a Comment