Skip to content

Commit

Permalink
Bottom view
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Nov 13, 2024
1 parent 5e1cd44 commit 5802c0a
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions example/src/screens/HybridObjectTestsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function TestCase({

export function HybridObjectTestsScreen() {
const safeArea = useSafeAreaInsets()
const colors = useColors()
const [selectedIndex, setSelectedIndex] = React.useState(0)
const selectedObject = [HybridTestObjectCpp, HybridTestObjectSwiftKotlin][
selectedIndex
Expand Down Expand Up @@ -180,9 +181,9 @@ export function HybridObjectTestsScreen() {
))}
</ScrollView>

<View style={styles.bottomView}>
<View style={[styles.bottomView, { backgroundColor: colors.background }]}>
<Text>{status}</Text>
<View style={styles.smallVSpacer} />
<View style={styles.flex} />
<Button title="Run all tests" onPress={runAllTests} />
</View>
</View>
Expand Down Expand Up @@ -247,8 +248,24 @@ const styles = StyleSheet.create({
},
flex: { flex: 1 },
bottomView: {
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
borderTopRightRadius: 15,
borderTopLeftRadius: 15,
elevation: 3,
shadowColor: 'black',
shadowOffset: {
width: 0,
height: 5,
},
shadowRadius: 7,
shadowOpacity: 0.4,

paddingHorizontal: 15,
paddingTop: 15,
paddingVertical: 9,
alignItems: 'center',
flexDirection: 'row',
},
})

0 comments on commit 5802c0a

Please sign in to comment.