globocom / react-native-draftjs-render

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

Support for (un)ordered-list-item nesting #24

Closed Yoruba closed 6 years ago

Yoruba commented 7 years ago

Hello, it would be nice to have support for nested list-items like the screen shot. See the "depth" property of the "type": "ordered-list-item", Level one = "depth": 0 Level two = "depth": 1

image

{
  "entityMap": {},
  "blocks": [
     {
      "key": "1pdm1",
      "text": "Level 1",
      "type": "ordered-list-item",
      "depth": 0,
      "inlineStyleRanges": [],
      "entityRanges": [],
      "data": {}
    },
    {
      "key": "1sd0p",
      "text": "Level 2",
      "type": "ordered-list-item",
      "depth": 1,
      "inlineStyleRanges": [],
      "entityRanges": [],
      "data": {}
    }
  ]
}

react-navtive-drafjs-render renders the object like this. image

Thanks, Adri

raphaelpor commented 7 years ago

Hello, @Yoruba!

It's a nice feature, but it isn't at our roadmap for now. Could you help us with it?

Thanks.

Yoruba commented 7 years ago

I will give a try in the coming weeks. I let you know when it is done.

Yoruba commented 6 years ago

This option is implemented