1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

RN upgrade: Fix SafeAreaView on iOS

This commit is contained in:
Laurent Cozic
2020-02-09 15:48:09 +00:00
parent 4235288c55
commit 813137efc9
5 changed files with 33 additions and 11 deletions

View File

@ -0,0 +1,12 @@
const React = require('react');
import { Platform, SafeAreaView } from 'react-native';
function JoplinSafeAreaView(props) {
if (Platform.OS === 'ios') {
return <SafeAreaView {...props}>{props.children}</SafeAreaView>;
} else {
throw new Error('Not done');
}
}
module.exports = JoplinSafeAreaView;