Skip to content

Instantly share code, notes, and snippets.

@radiegtya
Created May 13, 2018 03:35
Show Gist options
  • Save radiegtya/a15fa34d73a95a0465c31fc7a3564f7e to your computer and use it in GitHub Desktop.
Save radiegtya/a15fa34d73a95a0465c31fc7a3564f7e to your computer and use it in GitHub Desktop.
import React, { Component } from 'react'
import {
// ... THE REST NATIVEBASE IMPORT COMPONENT
Thumbnail, Spinner // #1. Add Spinner component to show loading on screen later
} from 'native-base'
import { View, StyleSheet, Image, Dimensions } from 'react-native'
// import axios from 'axios' // #2. Remove axios from here, because we already have axios in our actions
import { connect } from 'react-redux' //#3. Import connect from react-redux to connecting our component with redux
import { getProfile } from '../actions' //#4. Import actions that we made earlier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment