fix: move gesture-handler and TrackPlayer init to index.js, fix Dimensions usage
This commit is contained in:
1 parent
45ec25d257
commit
2327778136
4 files changed
+13
-12
No files matched your search
+5
-4
@@ -1,8 +1,9 @@
|
||||
import 'react-native-gesture-handler';
|
||||
import { registerRootComponent } from 'expo';
|
||||
|
||||
import TrackPlayer from 'react-native-track-player';
|
||||
import { PlaybackService } from './src/audio/service';
|
||||
import App from './App';
|
||||
|
||||
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
|
||||
// It also ensures that whether you load the app in Expo Go or in a native build,
|
||||
// the environment is set up appropriately
|
||||
TrackPlayer.registerPlaybackService(() => PlaybackService);
|
||||
|
||||
registerRootComponent(App);
|
||||
Reference in new issue
Block a user