From 82c84be1018a903c69c859119a92c8579817fdbd Mon Sep 17 00:00:00 2001 From: andrei0807 <32348752+andrei0807@users.noreply.github.com> Date: Tue, 4 Dec 2018 11:22:07 +0800 Subject: [PATCH] Update AppIntro.js I fixed issue that is "onPress doesn't work on android" --- AppIntro.js | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/AppIntro.js b/AppIntro.js index 52b42d9..1f07bac 100644 --- a/AppIntro.js +++ b/AppIntro.js @@ -309,27 +309,7 @@ export default class AppIntro extends Component { if (pageArray.length > 0) { pages = pageArray.map((page, i) => this.renderBasicSlidePage(i, page)); } else { - if (Platform.OS === 'ios') { - pages = childrens.map((children, i) => this.renderChild(children, i, i)); - } else { - androidPages = childrens.map((children, i) => { - const { transform } = this.getTransform(i, -windowsWidth / 3 * 2, 1); - pages.push(); - return ( - - {this.renderChild(children, i, i)} - - ); - }); - } + pages = childrens.map((children, i) => this.renderChild(children, i, i)); } if (this.isToTintStatusBar()) {