remove line height from text input for composer on ios (#2844)
* remove line height from text input for composer * only apply removal to ioszio/stable
parent
fe57335b86
commit
b91a6b429a
|
@ -28,6 +28,7 @@ import {useTheme} from 'lib/ThemeContext'
|
||||||
import {isUriImage} from 'lib/media/util'
|
import {isUriImage} from 'lib/media/util'
|
||||||
import {downloadAndResize} from 'lib/media/manip'
|
import {downloadAndResize} from 'lib/media/manip'
|
||||||
import {POST_IMG_MAX} from 'lib/constants'
|
import {POST_IMG_MAX} from 'lib/constants'
|
||||||
|
import {isIOS} from 'platform/detection'
|
||||||
|
|
||||||
export interface TextInputRef {
|
export interface TextInputRef {
|
||||||
focus: () => void
|
focus: () => void
|
||||||
|
@ -252,6 +253,7 @@ const styles = StyleSheet.create({
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
letterSpacing: 0.2,
|
letterSpacing: 0.2,
|
||||||
fontWeight: '400',
|
fontWeight: '400',
|
||||||
lineHeight: 23.4, // 1.3*16
|
// This is broken on ios right now, so don't set it there.
|
||||||
|
lineHeight: isIOS ? undefined : 23.4, // 1.3*16
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue