react-native-segmented-picker icon indicating copy to clipboard operation
react-native-segmented-picker copied to clipboard

Change font size?

Open williamflaherty opened this issue 3 years ago • 3 comments

Hi!

I see you haven't worked on this in a while but I'm wondering if it would be possible to add a way to change the font size of the labels. I tried styling it a few way and dove into the code but I'm too much of a react-native/swift novice to understand what I'd update to make it either a prop or style option.

I toyed with it a bit, updating the label font size in the PickerView.swift file and I see a font size style in SegmentedPickerStyles but I couldn't figure out how I would use/update those values in code if it's already an option, either.

As an aside, thanks for making this!

williamflaherty avatar Mar 03 '21 17:03 williamflaherty

@aleczratiu you will need a filter option for the reference type. In the filter function you can reference the current document so you could look up it's language and then only show relevant entries.

https://www.sanity.io/docs/reference-type#filter-ebd7a95f9dc6

LiamMartens avatar Nov 22 '23 21:11 LiamMartens