Update App.js

When fontsLoaded == false and isLoadingComplete == true then none of the branches is executed and the App component returns undefined in the render function which results in invariant violation: Nothing was returned from render.
This small fix should address this by returning null until fonts are loaded
This commit is contained in:
Andrej Guran
2020-10-03 19:57:27 +02:00
committed by GitHub
parent c0152b2fb4
commit 36973df709

2
App.js
View File

@@ -75,6 +75,8 @@ export default props => {
</GalioProvider>
</NavigationContainer>
);
} else {
return null
}
}