Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit 30c60af

Browse files
committed
🐛 (android) fix example for Android
1 parent 77597ad commit 30c60af

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

example/src/App.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react';
2-
import { View, TouchableOpacity, Text } from 'react-native';
2+
import { View, TouchableOpacity, Text, Platform } from 'react-native';
33
import { Navigation } from 'react-gondola';
44
import { FullScreenPortal, Canal, Screen } from 'react-gondola';
55
import { Instagram } from './canals/Instagram';
@@ -46,7 +46,6 @@ export default class App extends Component<{}, State> {
4646
},
4747
shadowOpacity: 0.25,
4848
shadowRadius: 3.84,
49-
elevation: 5,
5049
backgroundColor: 'white',
5150
}}
5251
>
@@ -70,7 +69,7 @@ export default class App extends Component<{}, State> {
7069
</View>
7170
</FullScreenPortal>
7271
<TouchableOpacity
73-
style={{ position: 'absolute', top: 20, left: 0 }}
72+
style={{ position: 'absolute', top: Platform.OS === 'ios' ? 20 : 0, left: 0 }}
7473
onPress={Navigation.instance.back}
7574
>
7675
<View style={{ backgroundColor: 'black', borderBottomRightRadius: 4 }}>

example/src/canals/Instagram/PostPage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const styles = StyleSheet.create({
1919
borderRadius: 16,
2020
justifyContent: 'center',
2121
alignItems: 'center',
22+
overflow: 'hidden',
2223
},
2324
info: {
2425
paddingVertical: 8,
@@ -29,6 +30,7 @@ const styles = StyleSheet.create({
2930
height: POST_SIZE,
3031
justifyContent: 'center',
3132
alignItems: 'center',
33+
overflow: 'hidden',
3234
},
3335
emoji: {
3436
fontSize: 24,

example/src/canals/Instagram/PostSneakPeek.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ const styles = StyleSheet.create({
2525
borderRadius: 16,
2626
justifyContent: 'center',
2727
alignItems: 'center',
28+
overflow: 'hidden',
2829
},
2930
post: {
3031
height: POST_SIZE,
3132
justifyContent: 'center',
3233
alignItems: 'center',
34+
overflow: 'hidden',
3335
},
3436
emoji: {
3537
fontSize: 24,

example/src/canals/Instagram/ProfilePage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const styles = StyleSheet.create({
2929
borderRadius: 32,
3030
justifyContent: 'center',
3131
alignItems: 'center',
32+
overflow: 'hidden',
3233
},
3334
info: {
3435
paddingVertical: 8,
@@ -45,9 +46,11 @@ const styles = StyleSheet.create({
4546
post: {
4647
flex: 1,
4748
height: POST_SIZE,
49+
maxWidth: POST_SIZE,
4850
justifyContent: 'center',
4951
alignItems: 'center',
5052
margin: 1,
53+
overflow: 'hidden',
5154
},
5255
emoji: {
5356
fontSize: 48,

0 commit comments

Comments
 (0)