fateh999 / react-native-paper-form-builder

React Native Paper Form Builder with inbuilt Validation, dropdown, autocomplete, checkbox, switch and radio inputs.
MIT License
116 stars 25 forks source link

How to add style #68

Closed diegodesouza closed 1 year ago

diegodesouza commented 1 year ago

https://github.com/fateh999/react-native-paper-form-builder/blob/d0487b3bc5ff9f36370b2f985587633b6222acee/src/Inputs/InputText.tsx#L32C57-L32C57

Hi Fateh, Thanks for this work. I'm wondering how I could add custom styles, I was hoping to be able to do something like

                        selectionColor='#F19336'
                        activeOutlineColor='#757575'
                        outlineStyle={{ borderRadius: 20, borderColor: '#fff' }}

These I am able to do while using the TextInput from react-native-paper. Thanks again

diegodesouza commented 1 year ago

I have tried

                                textInputProps: {
                                    label: 'Name',
                                    style: {
                                        borderRadius: 20,
                                        borderColor: '#fff'
                                    }
                                },
diegodesouza commented 1 year ago

for future reference the props from TextInput would be accepted in the textInputProps

                                 textInputProps: {
                                    label: 'Name',
                                    outlineStyle: { borderRadius: 20, borderColor: '#fff' },
                                },