App.js 786 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Create App Page
  3. * by id.ly Team
  4. */
  5. //Import Libraries
  6. import React, { Component } from 'react';
  7. import { Platform, AppRegistry, YellowBox } from 'react-native';
  8. import { Provider } from 'react-redux';
  9. import RNFetchBlob from 'react-native-fetch-blob';
  10. import store from './app/store';
  11. import Main from './app/index';
  12. console.disableYellowBox = true;
  13. export default class App extends Component {
  14. constructor() {
  15. super();
  16. this.state = {
  17. loadingFont: false,
  18. }
  19. }
  20. async componentDidMount() {
  21. this.setState({loadingFont: true});
  22. }
  23. render() {
  24. return (
  25. <Provider store={store}>
  26. <Main />
  27. </Provider>
  28. );
  29. }
  30. };
  31. AppRegistry.registerComponent("id.ly", () => App);