Skip to content

Commit

Permalink
Move registerComponents outside to surpress Android warning
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed Jun 11, 2020
1 parent 278a419 commit 361d6bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ Notifications.setNotificationHandler({

registerBackgroundTasks();

registerComponents();

const startApp = () => {
Navigation.events().registerAppLaunchedListener(async () => {
await DeviceInfo.init();

registerComponents();

const colorScheme = Appearance.getColorScheme();

if (Platform.OS === 'android') {
Expand Down

0 comments on commit 361d6bf

Please sign in to comment.