magic-script / magic-script-components

MagicScript Component Framework
https://components.magicscript.org/
Apache License 2.0
21 stars 2 forks source link

Poc property mapping #298

Closed pleszkiewicz closed 4 years ago

pleszkiewicz commented 4 years ago

Introduction

  1. This is a draft pull request, created for quick validation of the approach of implementing a new API for components.

  2. The PR includes changes for component only:

    • support new properties names
    • support styles
    • support PropTypes
  3. @grozdanov I left some // TODO: comments in places where I have most doubts. Let's discuss them.

  4. How are PropTypes related to magic-script-components-lumin validators?

  5. This solution has been tested on iOS and Lumin.

  6. What to do with events?

Results

styled_text