表題の通りです。
下記のようにコードを書いているのですが、iosシミュレーション上でスクロールが発火しません。
コレをシミュレーション上で上下にスクロールできるようにしたいです。
シミュレーションのverはiPhone 11 Pro Max 13.3です。
import React from 'react'; import { StyleSheet, Text, View, Button, ScrollView } from 'react-native'; import Constants from 'expo-constants'; export default class doneList extends React.Component{ render(){ return ( <View style={styles.container}> <ScrollView> <Text style={styles.welcome}>Welcome to React Native</Text> <Text style={styles.welcome}>Welcome to React Native</Text> <Text style={styles.welcome}>Welcome to React Native</Text> <Text style={styles.welcome}>Welcome to React Native</Text> <Text style={styles.welcome}>Welcome to React Native</Text> <Text style={styles.welcome}>Welcome to React Native</Text> <Text style={styles.welcome}>Welcome to React Native</Text> <Text style={styles.welcome}>Welcome to React Native</Text> <Text style={styles.welcome}>Welcome to React Native</Text> </ScrollView> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, marginTop: Constants.statusBarHeight, }, welcome: { margin: 20, backgroundColor: 'orange', margin: 10, textAlign: 'center', fontSize: 20, paddingTop: 70, } });
何卒よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー