Skip to content

Instantly share code, notes, and snippets.

View Hough-Lab's full-sized avatar

James Hough Hough-Lab

  • Thrust Carbon
  • London
View GitHub Profile
@Landerson352
Landerson352 / ScreenView.js
Created September 15, 2019 16:50
A React-Native component to simplify screen layout.
import React, { useContext, useRef } from 'react';
import { KeyboardAvoidingView, StatusBar, StyleSheet, View } from 'react-native';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import { SafeAreaView } from 'react-navigation';
import withMeasurements from '../utilities/withMeasurements';
import { utils } from '../theme';
import ActivityIndicator from './ActivityIndicator';
export const ScreenViewContext = React.createContext({});