globocom / react-native-draftjs-render

React Native render for draft.js model
MIT License
390 stars 62 forks source link

writingDirection prop is not passed as textProps #56

Closed teod closed 5 years ago

teod commented 5 years ago

writingDirection prop is not working when pass through textProps

  getRNDraftJSBlocks({
    contentState,
    textProps: { selectable: true, writingDirection: 'rtl' },
    customStyles,
  })

https://facebook.github.io/react-native/docs/text.html#props

raphaelpor commented 5 years ago

Hello @teod!

I think writingDirection is a style property. See: https://facebook.github.io/react-native/docs/text.html#style Could you try that?

teod commented 5 years ago

Yes, you're right, thank you for the help !