SrBrahma / react-native-gev

MIT License
3 stars 1 forks source link

Create a new lib for simple components? #1

Closed SrBrahma closed 2 years ago

SrBrahma commented 2 years ago

Maybe due to its philosophy, rn-gev won't be fit for 3rd party components libraries, as it contains other deps (maybe would be good if the deps were optional)

If so, for simple DX optimized gev components like View, Text and Pressable, they could be in another lib to be easily used by other libs.

SrBrahma commented 2 years ago

I think those have some pretty good functionalities, even being simple, that could really be popular among the RN devs.

I am really liking the s and t aliases, and the row, justify etc props. They improve a lot the readability and the productivity.

The automatic android_ripple for Pressable is also very useful.

Either I remove the deps from this lib or I make a intermediary one.

SrBrahma commented 2 years ago

All major components could be separated packages. For example someone could just want to use BottomInput, so he could ~ npm i react-native-gev/bottom-input.

SrBrahma commented 2 years ago

Maybe not needed.

Other components are all navigation/forms based. Both are used in any app.

SrBrahma commented 2 years ago

Maybe it would only contain View, Text. Doesn't seem to worth the effort.