Improved header safe bounce height

This commit is contained in:
Arnaud Vergnet 2020-04-16 18:54:57 +02:00
parent 54861d729d
commit 8b021356b8

2
App.js
View file

@ -16,6 +16,7 @@ import AprilFoolsManager from "./src/managers/AprilFoolsManager";
import Update from "./src/constants/Update";
import ConnectionManager from "./src/managers/ConnectionManager";
import URLHandler from "./src/utils/URLHandler";
import {setSafeBounceHeight} from "react-navigation-collapsible";
type Props = {};
@ -62,6 +63,7 @@ export default class App extends React.Component<Props, State> {
this.defaultData = {};
this.urlHandler = new URLHandler(this.onInitialURLParsed, this.onDetectURL);
this.urlHandler.listen();
setSafeBounceHeight(Platform.OS === 'ios' ? 100 : 0);
}
onInitialURLParsed = ({route, data}: Object) => {