Add scrolling to react native app
This commit is contained in:
parent
b4010cedd8
commit
9721c024ff
@ -1,4 +1,4 @@
|
||||
import { Text, View, Button } from "react-native";
|
||||
import { Text, View, Button, ScrollView } from "react-native";
|
||||
import React, {useState} from 'react';
|
||||
import { ThemedText } from "@/components/ThemedText"
|
||||
import Blurb, {BlurbData} from "@/components/Blurb"
|
||||
@ -11,8 +11,8 @@ const default_blurb: BlurbData = {
|
||||
export default function Index() {
|
||||
const [blurbs, setBlurbs] = useState([default_blurb])
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
<ScrollView
|
||||
contentContainerStyle={{
|
||||
flex: 1,
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
@ -27,7 +27,7 @@ export default function Index() {
|
||||
}}
|
||||
title="Load More"
|
||||
/>
|
||||
</View>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user