Skip to content

Commit

Permalink
Update home and expo pkg to use SafeAreaView from react-native-safe-a…
Browse files Browse the repository at this point in the history
…rea-context
  • Loading branch information
brentvatne committed May 23, 2020
1 parent 63f1aa0 commit 9bcd7c4
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
1 change: 1 addition & 0 deletions home/package.json
Expand Up @@ -51,6 +51,7 @@
"react-native-gesture-handler": "~1.6.0",
"react-native-infinite-scroll-view": "^0.4.5",
"react-native-maps": "0.26.1",
"react-native-safe-area-context": "^2.0.0",
"react-navigation": "4.1.0-alpha.1",
"react-navigation-material-bottom-tabs": "1.1.1",
"react-navigation-stack": "^2.0.15",
Expand Down
1 change: 1 addition & 0 deletions packages/expo/build/environment/DevLoadingView.ios.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions packages/expo/build/environment/DevLoadingView.ios.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/expo/build/environment/DevLoadingView.ios.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/expo/package.json
Expand Up @@ -80,6 +80,7 @@
"pretty-format": "^23.6.0",
"prop-types": "^15.6.0",
"qs": "^6.5.0",
"react-native-safe-area-context": "^2.0.0",
"serialize-error": "^2.1.0",
"unimodules-app-loader": "~1.0.2",
"unimodules-barcode-scanner-interface": "~5.1.0",
Expand Down
14 changes: 4 additions & 10 deletions packages/expo/src/environment/DevLoadingView.ios.tsx
@@ -1,13 +1,6 @@
import React, { useEffect, useState, useRef } from 'react';
import {
Animated,
StyleSheet,
SafeAreaView,
Text,
NativeModules,
NativeEventEmitter,
View,
} from 'react-native';
import { Animated, StyleSheet, Text, NativeModules, NativeEventEmitter, View } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';

const NativeDevLoadingView = NativeModules.DevLoadingView;
const nativeDevLoadingViewEventEmitter = new NativeEventEmitter(NativeDevLoadingView);
Expand Down Expand Up @@ -69,11 +62,12 @@ export default function DevLoadingView() {
<Animated.View
style={[styles.animatedContainer, { transform: [{ translateY }] }]}
pointerEvents="none">
<SafeAreaView style={styles.banner}>
<SafeAreaView style={styles.banner} edges={['bottom']}>
<View style={styles.contentContainer}>
<View style={{ flexDirection: 'row' }}>
<Text style={styles.text}>{isDevLoading ? 'Refreshing...' : 'Refreshed'}</Text>
</View>

<View style={{ flex: 1 }}>
<Text style={styles.subtitle}>
{isDevLoading ? 'Using Fast Refresh' : "Don't see your changes? Reload the app"}
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Expand Up @@ -14082,7 +14082,7 @@ react-native-reanimated@~1.9.0:
dependencies:
fbjs "^1.0.0"

react-native-safe-area-context@2.0.0:
react-native-safe-area-context@2.0.0, react-native-safe-area-context@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-2.0.0.tgz#7ef48e5a83a1e2f7fe9d5321493822b6765fd1ab"
integrity sha512-5VtCI3Nluzm7QfTcB/3j4YeWqt25QO1u5KTA1jEg1ckJzV19qCZFyHIpCCkS5+VEX+2JEHfdczhCdwE5sPgyEw==
Expand Down

0 comments on commit 9bcd7c4

Please sign in to comment.