1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

iOs tweaks

This commit is contained in:
Laurent Cozic 2017-11-19 00:03:42 +00:00
parent 0c14a42b28
commit 37c0b6d24a
2 changed files with 4 additions and 2 deletions

View File

@ -90,7 +90,8 @@ class NoteItemComponent extends Component {
const onCheckboxChange = this.props.onCheckboxChange;
const theme = themeStyle(this.props.theme);
let checkboxStyle = !isTodo ? { display: 'none' } : { color: theme.color };
// IOS: display: none crashes the app
let checkboxStyle = !isTodo ? { } : { color: theme.color };
if (isTodo) {
checkboxStyle.paddingRight = 10;

View File

@ -1,6 +1,6 @@
const React = require('react'); const Component = React.Component;
const { connect } = require('react-redux');
const { Modal, View, Text, Button, StyleSheet, TouchableOpacity, Image } = require('react-native');
const { Platform, View, Text, Button, StyleSheet, TouchableOpacity, Image } = require('react-native');
const Icon = require('react-native-vector-icons/Ionicons').default;
const { Log } = require('lib/log.js');
const { BackButtonService } = require('lib/services/back-button.js');
@ -41,6 +41,7 @@ class ScreenHeaderComponent extends Component {
alignItems: 'center',
shadowColor: '#000000',
elevation: 5,
paddingTop: Platform.OS === 'ios' ? 10 : 0, // Extra padding for iOS because the top icons are there
},
divider: {
borderBottomWidth: 1,