Browse Source

chore: export and import components through `component/index.js`

pull/1/head
kdxcxs 4 years ago
parent
commit
4f3c790917
  1. 3
      src/App.js
  2. 4
      src/component/index.js

3
src/App.js

@ -1,8 +1,7 @@
import React from 'react'; import React from 'react';
import {StyleSheet, View, Platform} from 'react-native'; import {StyleSheet, View, Platform} from 'react-native';
import {StatusBarHeight} from './api/StatusBarHeight'; import {StatusBarHeight} from './api/StatusBarHeight';
import YooLogin from './component/YooLogin'; import {YooLogin, YooBackground} from './component/index';
import {YooBackground} from './ui/YooBackground';
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {

4
src/component/index.js

@ -0,0 +1,4 @@
import YooLogin from './YooLogin';
import YooBackground from '../ui/YooBackground';
export {YooLogin, YooBackground};
Loading…
Cancel
Save