You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a plugin to add a custom rule to add a shortcode <my-button title='something' ... /> and render a custom component in its place.
This works when I render a simple tag like this
const myButtonRule: RenderRules['my_button'] = (
node,
_children,
_parent,
_styles
) => {
const { href, variant, title } = node.attributes
return <Text>TEST: {title}</Text> // This works
return <View><Text>TEST</Text></View> // This does not work. Just renders a blank white space
}
const rules = { my_button: myButtonRule }
However, when I render a or , I just get a white space where the component should be.
I need to render a or to render the proper styles.
The text was updated successfully, but these errors were encountered:
I'm using a plugin to add a custom rule to add a shortcode <my-button title='something' ... /> and render a custom component in its place.
This works when I render a simple tag like this
However, when I render a or , I just get a white space where the component should be.
I need to render a or to render the proper styles.
The text was updated successfully, but these errors were encountered: