This file contains hidden or 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 { Card, CardImg, CardText, CardBody, CardTitle, Breadcrumb, BreadcrumbItem, Button, Modal, ModalHeader, ModalBody, Row, Label } from 'reactstrap'; | |
| import { Link } from 'react-router-dom'; | |
| import { FadeTransform, Fade, Stagger } from 'react-animation-components'; | |
| import { format } from 'date-fns'; | |
| import Loading from './LoadingComponent'; | |
| import { baseUrl } from '../shared/baseUrl'; | |
| // react-redux-form | |
| import { Control, LocalForm, Errors } from 'react-redux-form'; |
This file contains hidden or 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
| module.exports = function (api) { | |
| api.cache(true); | |
| return { | |
| presets: ['babel-preset-expo'], | |
| plugins: ['react-native-reanimated/plugin'], | |
| }; | |
| }; |
This file contains hidden or 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 { Text } from 'react-native'; | |
| import { Card } from 'react-native-elements'; | |
| class Contact extends Component { | |
| render() { | |
| return ( | |
| <Card> | |
| <Card.Title>Contact Information</Card.Title> | |
| <Card.Divider /> |
This file contains hidden or 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
| //$ npm install react-native-virtualized-view --save | |
| import React, { Component } from 'react'; | |
| import { Text, FlatList } from 'react-native'; | |
| import { Card, ListItem, Avatar } from 'react-native-elements'; | |
| import { ScrollView } from 'react-native-virtualized-view'; | |
| import { LEADERS } from '../shared/leaders'; | |
| class RenderHistory extends Component { | |
| render() { | |
| return ( |
This file contains hidden or 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
| ... | |
| function HomeNavigatorScreen() { | |
| ... | |
| } | |
| import About from './AboutComponent'; | |
| function AboutNavigatorScreen() { | |
| const AboutNavigator = createStackNavigator(); | |
| return ( | |
| <AboutNavigator.Navigator initialRouteName='About' |
This file contains hidden or 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 * as Animatable from 'react-native-animatable'; | |
| class Reservation extends Component { | |
| ... | |
| render() { | |
| return ( | |
| <ScrollView> | |
| <Animatable.View animation="zoomIn" duration={2000} delay={1000}> | |
| <View style={styles.formRow}> |
This file contains hidden or 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 { ..., Alert } from 'react-native'; | |
| // class ModalContent extends Component { | |
| // ... | |
| // } | |
| class Reservation extends Component { | |
| constructor(props) { | |
| super(props); |
This file contains hidden or 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
| ... | |
| class RenderDish extends Component { | |
| render() { | |
| // gesture | |
| const recognizeDrag = ({ moveX, moveY, dx, dy }) => { | |
| if (dx < -200) return 1; // right to left | |
| else if (dx > 200) return 2; // left to right | |
| return 0; | |
| }; | |
| const panResponder = PanResponder.create({ |
This file contains hidden or 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 { ..., Modal, Button } from 'react-native'; | |
| import { ..., Input } from 'react-native-elements'; | |
| ... | |
| class ModalContent extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| rating: 3, | |
| author: '', |
This file contains hidden or 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 { ..., Rating } from 'react-native-elements'; | |
| ... | |
| class RenderDish extends Component { | |
| render() { | |
| ... | |
| return ( | |
| <Card> | |
| ... | |
| <View style={{ flexDirection: 'row', justifyContent: 'center' }}> |
OlderNewer