-
Notifications
You must be signed in to change notification settings - Fork 14
/
b-pan-responder-direct.js
39 lines (34 loc) · 1.05 KB
/
b-pan-responder-direct.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React, { Component } from 'react';
import { AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import Card from './src/Card';
import SwipeablePanResponderDirect from './src/SwipeablePanResponderDirect';
import BridgeNoiseMaker from './src/BridgeNoiseMaker';
export default class PanResponderDirectExample extends Component {
render() {
return (
<View style={styles.container}>
<SwipeablePanResponderDirect simulateHeavyRender={this.props.simulateHeavyRender}>
<Card title='The Winds of Winter' />
</SwipeablePanResponderDirect>
<SwipeablePanResponderDirect simulateHeavyRender={this.props.simulateHeavyRender}>
<Card title='A Dream of Spring' />
</SwipeablePanResponderDirect>
{this.props.simulateBusyBridge ? <BridgeNoiseMaker /> : false }
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: 20,
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
});