You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
iOS: Fixed bug that was preventing images from displaying
This commit is contained in:
@ -168,11 +168,14 @@ class NoteBodyViewer extends Component {
|
|||||||
// https://github.com/react-native-community/react-native-webview/issues/376
|
// https://github.com/react-native-community/react-native-webview/issues/376
|
||||||
// However, if we add the <meta> tag as described there, it is no longer necessary and WebKit can be used!
|
// However, if we add the <meta> tag as described there, it is no longer necessary and WebKit can be used!
|
||||||
// https://github.com/react-native-community/react-native-webview/issues/312#issuecomment-501991406
|
// https://github.com/react-native-community/react-native-webview/issues/312#issuecomment-501991406
|
||||||
|
//
|
||||||
|
// However, on iOS, due to the bug below, we cannot use WebKit:
|
||||||
|
// https://github.com/react-native-community/react-native-webview/issues/312#issuecomment-503754654
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={style}>
|
<View style={style}>
|
||||||
<WebView
|
<WebView
|
||||||
useWebKit={true}
|
useWebKit={Platform.OS !== 'ios'}
|
||||||
style={webViewStyle}
|
style={webViewStyle}
|
||||||
source={source}
|
source={source}
|
||||||
injectedJavaScript={injectedJs.join('\n')}
|
injectedJavaScript={injectedJs.join('\n')}
|
||||||
|
@ -364,8 +364,9 @@ class ScreenHeaderComponent extends Component {
|
|||||||
|
|
||||||
const addFolderChildren = (folders, pickerItems, indent) => {
|
const addFolderChildren = (folders, pickerItems, indent) => {
|
||||||
folders.sort((a, b) => {
|
folders.sort((a, b) => {
|
||||||
if (!a || !b) return -1; // No idea why "a" was undefined at one point
|
const aTitle = a && a.title ? a.title : '';
|
||||||
return a.title.toLowerCase() < b.title.toLowerCase() ? -1 : +1;
|
const bTitle = b && b.title ? b.title : '';
|
||||||
|
return aTitle.toLowerCase() < bTitle.toLowerCase() ? -1 : +1;
|
||||||
});
|
});
|
||||||
|
|
||||||
for (let i = 0; i < folders.length; i++) {
|
for (let i = 0; i < folders.length; i++) {
|
||||||
|
Reference in New Issue
Block a user