reactify-wc icon indicating copy to clipboard operation
reactify-wc copied to clipboard

fit for RN?

Open KeyHQ opened this issue 3 years ago • 1 comments

Is this package currently applicable to RN? I tried to use it in the RN project and pass data to components as props, but it failed.

// react
const Card = reactifyWc("my-card");
<Card   data="1234"/>

//web-components
@property()
  data:string|number=0;

render(){
return html`
<div>${this.data}<div>
`
}

can not get "1234"

KeyHQ avatar Sep 30 '22 09:09 KeyHQ

And it even prevents me from inputting "data"in the tag Card ,when it turns ,it warns "Type '{ data: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes'. Property 'data' does not exist on type 'IntrinsicAttributes & RefAttributes'."

KeyHQ avatar Sep 30 '22 09:09 KeyHQ