clouway / ui-components

A set of UI components used for development
0 stars 1 forks source link

build: support react-native components #11

Closed mgenov closed 6 years ago

mgenov commented 6 years ago

Currently project structure is designed for Web Components but it will be use-full and for supporting of native components for react-native.

This could be accomplished using module separation between web & native:

packages/
  web-ui-components   
     package.json
  native-ui-components 
     package.json 
package.json <- root project

Another technique is by wrapping web & native components into Platform Agnostic components which to be re-used between platforms.

More information about this technique could be taken from: https://github.com/necolas/react-native-web