Skip to content

Instantly share code, notes, and snippets.

View yogieputra8's full-sized avatar
🏠
Working from home

Yogie Putra yogieputra8

🏠
Working from home
  • Tokopedia
  • Jakarta, Indonesia
View GitHub Profile
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
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())
}
import { combineReducers } from 'redux'
import { PENDING, FULFILLED, REJECTED } from 'redux-promise-middleware'
import {
FETCH_DATA,
FETCH_BANNERS,
FETCH_DESTINATION
} from '../actions/index'
import axios from 'axios'
export const FETCH_DATA = 'FETCH_DATA'
export const fetchData = () => {
return {
type: FETCH_DATA
}
}
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())
}
import { combineReducers } from 'redux'
import { PENDING, FULFILLED, REJECTED } from 'redux-promise-middleware'
import {
FETCH_DATA,
FETCH_BANNERS
} from '../actions/index'
export const data = (state = {
import axios from 'axios'
export const FETCH_DATA = 'FETCH_DATA'
export const fetchData = () => {
return {
type: FETCH_DATA
}
}
import React, { Component } from 'react'
import {
StyleSheet,
View,
Image,
Text } from 'react-native'
import Swiper from 'react-native-swiper'
import { connect } from 'react-redux'
import { fetchBanners } from '../actions'
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