Skip to content

Commit

Permalink
chore: use es6 import for SafeAreaView component (facebook#29143)
Browse files Browse the repository at this point in the history
Summary:
This PR is to help proceed this discussion. react-native-community/discussions-and-proposals#201 (comment)

Converted `require` to `import` for SafeAreaView.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[General] [Changed] - switched to es6 import for SafeAreaView
Pull Request resolved: facebook#29143

Test Plan: Tested that App runs on RNTester

Reviewed By: shergin

Differential Revision: D22109435

Pulled By: TheSavior

fbshipit-source-id: 57dc4ab88bf497b43422b20416afbe4c4a1e001d
  • Loading branch information
Naturalclar authored and facebook-github-bot committed Jun 18, 2020
1 parent e73208e commit a69bd9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Libraries/Components/SafeAreaView/SafeAreaView.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @format
*/

const Platform = require('../../Utilities/Platform');
const React = require('react');
const View = require('../View/View');
import Platform from '../../Utilities/Platform';
import * as React from 'react';
import View from '../View/View';

import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
import type {ViewProps} from '../View/ViewPropTypes';
Expand Down

0 comments on commit a69bd9d

Please sign in to comment.