From 4f3c7909171be6576424f2a9400dc99cd998b8b4 Mon Sep 17 00:00:00 2001 From: kdxcxs Date: Wed, 2 Dec 2020 18:04:25 +0800 Subject: [PATCH] chore: export and import components through `component/index.js` --- src/App.js | 3 +-- src/component/index.js | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/component/index.js diff --git a/src/App.js b/src/App.js index f35e302..d47fc85 100644 --- a/src/App.js +++ b/src/App.js @@ -1,8 +1,7 @@ import React from 'react'; import {StyleSheet, View, Platform} from 'react-native'; import {StatusBarHeight} from './api/StatusBarHeight'; -import YooLogin from './component/YooLogin'; -import {YooBackground} from './ui/YooBackground'; +import {YooLogin, YooBackground} from './component/index'; const styles = StyleSheet.create({ container: { diff --git a/src/component/index.js b/src/component/index.js new file mode 100644 index 0000000..7de9978 --- /dev/null +++ b/src/component/index.js @@ -0,0 +1,4 @@ +import YooLogin from './YooLogin'; +import YooBackground from '../ui/YooBackground'; + +export {YooLogin, YooBackground};