Link to ticket goes here
(Summary of the PR issue & fix -- specifically list the steps you took to address the problem, link to Jira or design. Ex: 1.) Added props, 2.) edited styles...)
setData + getData are async storage functions | |
// thunk | |
export const fetchRefreshToken = () => (dispatch, getState) => { | |
const token = `${getState().auth.refreshToken}`; | |
const params = { "token": token }; | |
dispatch(refreshTokenRequest()); | |
return axios.get(`${API_URL}v1/refreshToken`, {params}) | |
.then((res => { |
import React, { Component } from 'react' | |
import { WebView } from 'react-native-webview'; | |
import { StyleSheet, ScrollView, View } from 'react-native'; | |
import PropTypes from 'prop-types'; | |
// adapted from: https://stackoverflow.com/a/49310105/4488853 | |
class Tweet extends Component { | |
static propTypes = { | |
tweetUrl: PropTypes.string, | |
}; |