Skip to content

Commit 85a7a91

Browse files
committed
Android scrollable problem is fixed
1 parent 0fd2208 commit 85a7a91

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/src/Timeline.style.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
import { ScreenWidth } from "@freakycoder/react-native-helpers";
1+
import {
2+
ScreenWidth,
3+
isAndroid,
4+
ScreenHeight
5+
} from "@freakycoder/react-native-helpers";
26

37
export const _container = backgroundColor => ({
48
marginLeft: 16,
9+
marginRight: 16,
510
height: "100%",
6-
backgroundColor,
7-
marginRight: 16
11+
backgroundColor
812
});
913

1014
export default {
1115
listStyle: {
1216
width: ScreenWidth,
13-
maxHeight: ScreenHeight / 2 - 32
17+
maxHeight: isAndroid && ScreenHeight / 2 - 32
1418
},
1519
contentContainerStyle: {
1620
alignItems: "center"

0 commit comments

Comments
 (0)