Skip to content

Commit 9e220da

Browse files
sherginfacebook-github-bot
authored andcommitted
Using StyleSheet.hairlineWidth in TextInputExample
Summary: This is workaround for blury and thick borders on iOS when specified border size does not multiplier of pixel size. Original problem is probably related to CALayer border drawing specifics; documented as T22099662 and #14106 Before: https://pxl.cl/9cJ7 After: https://pxl.cl/9cJ4 Reviewed By: javache Differential Revision: D5999752 fbshipit-source-id: ad6d1078c6ebf7c8e0a3bc3c150525480a5a7a5c
1 parent bf36983 commit 9e220da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RNTester/js/TextInputExample.ios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,14 @@ var styles = StyleSheet.create({
340340
paddingBottom: 300,
341341
},
342342
default: {
343-
borderWidth: 0.5,
343+
borderWidth: StyleSheet.hairlineWidth,
344344
borderColor: '#0f0f0f',
345345
flex: 1,
346346
fontSize: 13,
347347
padding: 4,
348348
},
349349
multiline: {
350-
borderWidth: 0.5,
350+
borderWidth: StyleSheet.hairlineWidth,
351351
borderColor: '#0f0f0f',
352352
flex: 1,
353353
fontSize: 13,

0 commit comments

Comments
 (0)