Initial commit

This commit is contained in:
Lei Nelissen
2020-06-16 17:51:51 +02:00
commit 50dd06a473
74 changed files with 14480 additions and 0 deletions

33
src/components/App.tsx Normal file
View File

@@ -0,0 +1,33 @@
import React, { Component } from 'react';
import TrackPlayer from 'react-native-track-player';
import { NavigationContainer } from '@react-navigation/native';
import Routes from '../screens';
interface State {
isReady: boolean;
}
export default class App extends Component<State> {
state = {
isReady: false
};
async componentDidMount() {
await TrackPlayer.setupPlayer();
this.setState({ isReady: true });
}
render() {
const { isReady } = this.state;
if (!isReady) {
return null;
}
return (
<NavigationContainer>
<Routes />
</NavigationContainer>
);
}
}