petrogad / react-native-materialui-textfield

Material textfield
Other
24 stars 20 forks source link

labelTextStyle #4

Open bertbeck opened 5 years ago

bertbeck commented 5 years ago

Does this work?

I'm trying to set the color and style of the top label by using:

  <Dropdown
    labelTextStyle={{fontWeight:'600', color:'black'}} 
    label='Gig Type'
    value={gigTypeVal}
    data={[{value:'Paid'},{value:'Volunteer'}]}
  />

but it doesn't work

petrogad commented 5 years ago

Need a bit more information on this;

This is a textfield not a dropdown, can you show me your component that you're attempting to style the top of the label with?

bertbeck commented 5 years ago

Sorry - I think I posted in the wrong spot - I forked to see if I could get it to style the top label but no luck. I changed it to use your component. is locked into a gray color for the top label, I need to change it to black and would like to specify other attributes.

See:

https://github.com/bertbeck/react-native-material-dropdown/blob/master/src/components/dropdown/index.js https://github.com/bertbeck/react-native-material-dropdown forked from: https://github.com/n4kz/react-native-material-dropdown

Bert

On Thu, Jan 10, 2019 at 7:19 AM Pete notifications@github.com wrote:

Need a bit more information on this;

This is a textfield not a dropdown, can you show me your component that you're attempting to style the top of the label with?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petrogad/react-native-materialui-textfield/issues/4#issuecomment-453111168, or mute the thread https://github.com/notifications/unsubscribe-auth/AF37QgCX1TL2a08ttvNhPkVqnyKf32xtks5vB0vZgaJpZM4Z4T-R .