picker
picker copied to clipboard
How to change the ellipsize mode on iOS ?
I'd like to change the ellipsize mode to "clip" instead of "tail" on iOS, is that possible?
mmm, that would be easily feasible by adding a ellipsizeMode
prop on the Picker component and set it there:
label.numberOfLines = _numberOfLines;
label.lineBreakMode = NSLineBreakByClipping; // here, or any value exposed to js
label.leftInset = 20.0;
label.rightInset = 20.0;
return view;
In my case, I want to set numberOfLines
to 0
. Except some js code from this lib is preventing it:
let numberOfLines = Math.round(this.props.numberOfLines ?? 1);
if (numberOfLines < 1) {
numberOfLines = 1;
}
This is wrong, we should allow a value of 0
to deactivate text truncating. I'll issue a PR for that.
The same problem, switched to the last version, and now 2022 looks like 20... we need a way to disable ellipsize if it needed