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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
Platform, | |
StyleSheet, |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
Platform, | |
StyleSheet, |
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 { View, Text, Image, ActivityIndicator, TouchableOpacity } from 'react-native' | |
import { connect } from 'react-redux' | |
import { fetchReviewers } from '../actions' | |
class Reviewers extends Component { | |
componentDidMount(){ | |
this.props.dispatch(fetchReviewers()) | |
} |
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 { combineReducers } from 'redux' | |
import { PENDING, FULFILLED, REJECTED } from 'redux-promise-middleware' | |
import { | |
FETCH_DATA, | |
FETCH_BANNERS, | |
FETCH_DESTINATION | |
} from '../actions/index' | |
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 axios from 'axios' | |
export const FETCH_DATA = 'FETCH_DATA' | |
export const fetchData = () => { | |
return { | |
type: FETCH_DATA | |
} | |
} |
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 { View, Text, ScrollView, Image } from 'react-native' | |
import { connect } from 'react-redux' | |
import { fetchDest } from '../actions' | |
class Destinations extends Component { | |
componentDidMount(){ | |
this.props.dispatch(fetchDest()) | |
} |
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 { combineReducers } from 'redux' | |
import { PENDING, FULFILLED, REJECTED } from 'redux-promise-middleware' | |
import { | |
FETCH_DATA, | |
FETCH_BANNERS | |
} from '../actions/index' | |
export const data = (state = { |
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 axios from 'axios' | |
export const FETCH_DATA = 'FETCH_DATA' | |
export const fetchData = () => { | |
return { | |
type: FETCH_DATA | |
} | |
} |
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 { View, Text, FlatList, Image } from 'react-native' | |
import axios from 'axios' | |
class Products extends Component { | |
state = { | |
data_products: [], | |
refreshing: false |
NewerOlder