Skip to content

Instantly share code, notes, and snippets.

View SaraChicaD's full-sized avatar
💭
React Native-ing

Sara Inés Calderón SaraChicaD

💭
React Native-ing
View GitHub Profile
@SaraChicaD
SaraChicaD / React_Native_Twitter_Embed.js
Last active April 14, 2023 08:34
Code to embed a web Twitter tweet into a React Native app
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,
};
@SaraChicaD
SaraChicaD / PR_Template.md
Last active August 1, 2022 18:35
Pull request / PR template for teams that have a lot of hands in the pie, and or would like to promote code review practices.

TICKET

Link to ticket goes here

WHAT THIS PR DOES

(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...)

HOW TO TEST THIS PR

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 => {