Skip to content

Commit

Permalink
fix(ExampleApp): results overflow container (#157 by @leonskim)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonskim authored Jul 30, 2024
1 parent 32970f1 commit 884b585
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/ExampleApp/app/screens/ImageLabelingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ const ImageLabelingScreenComponent: FC<ImageLabelingScreenProps> = observer(
}}
/>

<View style={$resultContainer}>
{result &&
result.map((item) => {
{result && (
<View style={$resultContainer}>
{result.map((item) => {
return (
<View key={item.text} style={$resultRow}>
<Text style={$resultText} text={item.text} />
Expand All @@ -137,7 +137,8 @@ const ImageLabelingScreenComponent: FC<ImageLabelingScreenProps> = observer(
</View>
)
})}
</View>
</View>
)}
</Screen>
)
},
Expand Down Expand Up @@ -168,8 +169,8 @@ const $description: TextStyle = {

const $resultContainer: ViewStyle = {
width: "100%",
height: 200,
borderWidth: 1,
marginVertical: 24,
}
const $resultRow: ViewStyle = {
flexDirection: "row",
Expand Down

0 comments on commit 884b585

Please sign in to comment.