Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import React, { Component } from 'react'
  2. import { Text, View,StyleSheet } from 'react-native'
  3. import {PanGestureHandler} from 'react-native-gesture-handler'
  4.  
  5. export default class RnGestureHandler extends Component {
  6. render() {
  7. return (
  8. <View style={styles.container}>
  9. <View style={[styles.circle]} />
  10. </View>
  11. )
  12. }
  13. }
  14.  
  15. const styles = StyleSheet.create({
  16. container: {
  17. flex: 1,
  18. justifyContent: "space-around",
  19. flexDirection: "column",
  20. backgroundColor: "#fff"
  21. },
  22.  
  23. circle: {
  24. width: 150,
  25. height: 150,
  26. backgroundColor: "#c00000",
  27. borderRadius: 100
  28. },
  29.  
  30. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement