Last active
June 29, 2019 23:12
-
-
Save anastely/84c05ae745e49b7caa80ce693f681553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { View, Text, StyleSheet, Dimensions, FlatList, ScrollView, TouchableOpacity } from 'react-native'; | |
import firebase from "react-native-firebase"; | |
import Icon from 'react-native-vector-icons/Ionicons'; | |
import { SharedElement } from 'react-native-motion'; | |
const { width } = Dimensions.get("window") | |
// create a component | |
class Detail extends Component { | |
render() { | |
return ( | |
<SharedElement id="source"> | |
<View style={styles.container}> | |
<Text> Order Number One </Text> | |
</View> | |
</SharedElement> | |
); | |
} | |
} | |
// define your styles | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
alignSelf: "center" | |
}, | |
}); | |
//make this component available to the app | |
export default Detail ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment