From b39c9f3bc6601505e01b399ebeddc0dc89311fab Mon Sep 17 00:00:00 2001 From: Hadi Kurniawan AR Date: Tue, 6 Apr 2021 00:18:26 +0700 Subject: [PATCH] fixing issue #238 --- src/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index a2f6a7c..b3c7b5f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -14,6 +14,7 @@ import { GestureResponderEvent, LayoutChangeEvent, ListRenderItemInfo, + Dimensions, } from 'react-native'; import mergeExtraData from './merge-extradata'; @@ -77,8 +78,8 @@ export default class AppIntroSlider extends React.Component< bottomButton: false, }; state = { - width: 0, - height: 0, + width: Dimensions.get('screen').width, + height: Dimensions.get('screen').height, activeIndex: 0, }; flatList: FlatList | undefined;