mirror of
https://github.com/zhigang1992/reactNativeScreenAndroidTouchIssue.git
synced 2026-05-13 20:26:32 +08:00
chore: using fluid navigator
This commit is contained in:
12
App.js
12
App.js
@@ -6,9 +6,10 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React, {Component} from 'react';
|
||||
import {Button, Platform, StyleSheet, Text, View} from 'react-native';
|
||||
import {createAppContainer, createStackNavigator} from 'react-navigation';
|
||||
import React from 'react';
|
||||
import {Button, StyleSheet, View} from 'react-native';
|
||||
import {createAppContainer} from 'react-navigation';
|
||||
import {createFluidNavigator} from "react-navigation-fluid-transitions";
|
||||
|
||||
const PageA = ({navigation}) => (
|
||||
<View style={{flex: 1}}>
|
||||
@@ -19,9 +20,6 @@ const PageA = ({navigation}) => (
|
||||
const PageB = () => (
|
||||
<View style={styles.container}>
|
||||
<Button onPress={() => alert("TEST")} title="TEST"/>
|
||||
<View style={StyleSheet.absoluteFill}>
|
||||
<View style={{flex: 1}}/>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
|
||||
@@ -34,7 +32,7 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
});
|
||||
|
||||
export default createAppContainer(createStackNavigator({
|
||||
export default createAppContainer(createFluidNavigator({
|
||||
PageA,
|
||||
PageB
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user