Skip to content

Instantly share code, notes, and snippets.

@anastely
Last active June 29, 2019 23:12
Show Gist options
  • Save anastely/84c05ae745e49b7caa80ce693f681553 to your computer and use it in GitHub Desktop.
Save anastely/84c05ae745e49b7caa80ce693f681553 to your computer and use it in GitHub Desktop.
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