Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove root element border? #115

Open
sunviwo opened this issue Jun 26, 2019 · 3 comments
Open

How to remove root element border? #115

sunviwo opened this issue Jun 26, 2019 · 3 comments

Comments

@sunviwo
Copy link

sunviwo commented Jun 26, 2019

Hi,
Love this component. I'm trying to give the select field the look and feel of my app theme. I'd love to remove the border surrounding the field, but styling isn't being successful for now. Any help please?

<ModalSelector
           data={propertyTypes}
           nitValue={i18n.t('select')}
           selectedKey={stepprops.values.propertyType}
           onChange={(option)=>{ 
                   stepprops.values.propertyType = parseInt(option.key);                                
                   this.setState({reload: true});
           }} 
           style={{
                    borderWidth: 0,
                    borderColor: 'transparent',                                    
           }}                              
/>

Screenshot from 2019-06-26 04-16-08

@peacechen
Copy link
Owner

peacechen commented Aug 8, 2019

Try the prop optionContainerStyle.
https://github.com/peacechen/react-native-modal-selector#props

I'm not sure if that's what you're looking for. If not, a new prop may need to be added.

@peacechen
Copy link
Owner

On second thought, you could use the wrapper mode and provide your own open button. See the Wrapper example:
https://github.com/peacechen/react-native-modal-selector#usage

@fsanaulla
Copy link

Hey @sunviwo try to add this prop:

selectStyle={ { borderWidth: 0 } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants