Use react-native-gesture-handler's PanGestureHandler instead of PanResponder

This commit is contained in:
Brent Vatne
2018-10-10 13:52:38 -07:00
parent 327ca0bbe4
commit f3c83c985d
20 changed files with 2550 additions and 329 deletions

View File

@@ -5,7 +5,14 @@ import { createStackNavigator } from 'react-navigation-stack';
class ListScreen extends React.Component {
render() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<View
style={{
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#fff',
}}
>
<Text>List Screen</Text>
<Text>A list may go here</Text>
<Button
@@ -24,7 +31,14 @@ class ListScreen extends React.Component {
class DetailsScreen extends React.Component {
render() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<View
style={{
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#fff',
}}
>
<Text>Details Screen</Text>
<Button
title="Go to Details... again"