1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +02:00
This commit is contained in:
Laurent Cozic
2020-10-16 16:14:39 +01:00
parent e3a37ec2d6
commit 4e303be85f
24 changed files with 55 additions and 3319 deletions

View File

@ -29,7 +29,7 @@ interface Props {
export default function NoteBodyViewer(props:Props) {
const theme = themeStyle(props.themeId);
const webViewStyle:any = useMemo(() => {
return { backgroundColor: theme.backgroundColor };
}, [theme.backgroundColor]);
@ -43,7 +43,7 @@ export default function NoteBodyViewer(props:Props) {
props.highlightedKeywords,
props.noteResources,
props.paddingBottom,
props.noteHash
props.noteHash
);
const onResourceLongPress = useOnResourceLongPress(
@ -64,7 +64,7 @@ export default function NoteBodyViewer(props:Props) {
}, [props.onLoadEnd]);
function onError() {
reg.logger().error('WebView error')
reg.logger().error('WebView error');
}
// On iOS scalesPageToFit work like this:
@ -108,4 +108,4 @@ export default function NoteBodyViewer(props:Props) {
<BackButtonDialogBox ref={dialogBoxRef}/>
</View>
);
}
}