You've already forked joplin
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:
12
ReactNativeClient/lib/components/SafeAreaView.js
Normal file
12
ReactNativeClient/lib/components/SafeAreaView.js
Normal 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;
|
Reference in New Issue
Block a user