fable-compiler / fable-react-native

Fable bindings and helpers for React Native projects
Apache License 2.0
49 stars 11 forks source link

Add Key property to all elements #21

Closed forki closed 5 years ago

forki commented 6 years ago

How can we do that?

/cc @vbfox @MangelMaxime @alfonsogarciacaro

alfonsogarciacaro commented 6 years ago

Not sure if it's different in RN, in React you use the Key attribute for built-in elements and in your custom component you've to define a key field (lower case) in your props Pojo record (we currently need to find a solution for the lazy views).

forki commented 6 years ago

yesmy question is: how can we add it to this lib?

MangelMaxime commented 6 years ago

Sorry, I didn't saw this issue :)

You can add | Key of string to all the DU.

This is what has been done for ReactLeaflet