SrBrahma / react-native-gev

MIT License
3 stars 1 forks source link

Remove components from useForm #11

Closed SrBrahma closed 2 years ago

SrBrahma commented 2 years ago

Certainly is better for separation of concerns and less "vendor lock-in".

What we can have is <DevComponent {...getControl('id')}, where it returns the control, idToLabel and future props.

It would also allow us to move us a bit from theme'ing.

SrBrahma commented 2 years ago

Added getControl() in 0.50.0. Will remove components in a future version.

SrBrahma commented 2 years ago

Unsure about this.

SrBrahma commented 2 years ago

If we did remove it, we should probably also remove defaultProps/theme, as they may also cause the said "vendor lock-in".

Closing for now.