Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions NewArch/src/examples/ScrollViewExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const ScrollViewExamplePage: React.FunctionComponent<{navigation?: any}>
but you can add any type of ReactNode inside of of a ScrollView.
</Text>
</ScrollView>`;
const example2jsx = `<ScrollView style={{height: 40}} horizontal={true}>
const example2jsx = `<ScrollView style={{height: 40}} horizontal={true} focusable={true}>
<Text>
Here is a very long snippet of text. The goal is for this text to be
too long to fit inside this view which has a height restriction.
Expand Down Expand Up @@ -150,7 +150,7 @@ export const ScrollViewExamplePage: React.FunctionComponent<{navigation?: any}>
</ScrollView>
</Example>
<Example title="A horizontal ScrollView." code={example2jsx}>
<ScrollView style={{height: 40}} horizontal={true}>
<ScrollView style={{height: 40}} horizontal={true} {...({focusable: true} as any)}>
<Text style={{color: colors.text}}>
Here is a very long snippet of text. The goal is for this text to be
too long to fit inside this view which has a height restriction.
Expand Down
4 changes: 2 additions & 2 deletions src/examples/ScrollViewExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const ScrollViewExamplePage: React.FunctionComponent<{}> = () => {
but you can add any type of ReactNode inside of of a ScrollView.
</Text>
</ScrollView>`;
const example2jsx = `<ScrollView style={{height: 40}} horizontal={true}>
const example2jsx = `<ScrollView style={{height: 40}} horizontal={true} focusable={true}>
<Text>
Here is a very long snippet of text. The goal is for this text to be
too long to fit inside this view which has a height restriction.
Expand Down Expand Up @@ -117,7 +117,7 @@ export const ScrollViewExamplePage: React.FunctionComponent<{}> = () => {
</ScrollView>
</Example>
<Example title="A horizontal ScrollView." code={example2jsx}>
<ScrollView style={{height: 40}} horizontal={true}>
<ScrollView style={{height: 40}} horizontal={true} {...({focusable: true} as any)}>
<Text style={{color: colors.text}}>
Here is a very long snippet of text. The goal is for this text to be
too long to fit inside this view which has a height restriction.
Expand Down
Loading