FaridSafi / react-native-gifted-form

📝 « One React-Native form component to rule them all »
MIT License
1.44k stars 214 forks source link

Adds option to pass containerView and modalView to formStyles prop #7

Closed danielweinmann closed 8 years ago

danielweinmann commented 8 years ago

Passing style to GiftedForm messes with the styles because React Native also renders the styles.

So I added an option to pass containerView or modalView through formStyles prop. Something like this now works:

<GiftedForm
  formStyles={{
    containerView: {
      backgroundColor: 'red',
    }
  }}
>

What do you think, @FaridSafi?

danielweinmann commented 8 years ago

Sorry, I'm closing this PR because I've forgot to create a topic branch. Already sent another.