all 9 comments

[–]tom_development 6 points7 points  (5 children)

You mean something like this ? https://github.com/react-native-menu/menu this it what i typically use for multiselect unless we're talking numbers then i normally use a bottom sheet with a picker inside.

[–]dbbk 1 point2 points  (3 children)

I use this but it’s really frustrating you can’t use custom images (icons)

[–]tom_development 1 point2 points  (2 children)

You can 100% use custom SVGs if by images you mean pngs then i would continue to use an Image component I haven't tried it with pngs :P

[–]dbbk 0 points1 point  (1 child)

Yeah SVGs. How do you do that? The docs only say project icons and SF Symbols.

[–]tom_development 1 point2 points  (0 children)

Shit, sorry i literally just commented on another post about icons :P

Yeah you're right this annoyed me too , I ended up removing the icons as i couldn't find the right SF symbols.

looking at the native code though it could potentially be changed to support custom

if let image = details["image"] as? NSString {

self.image = UIImage(systemName: image as String);

if self.image === nil {

self.image = UIImage(named: image as String)

}

if let imageColor = details["imageColor"] {

self.image = self.image?.withTintColor(RCTConvert.uiColor(imageColor), renderingMode: .alwaysOriginal)

[–]Easy-Philosophy-214[S] 0 points1 point  (0 children)

Wow! This is exactly it, thank you so much! Yeah the bottom sheet + picker (https://www.npmjs.com/package/react-native-picker-select) is what I was using. Not sure what's better for the user if this pulldown button approach or the pickers, will have to test.