Skip to content

can not set custom render caption #5

@gandarain

Description

@gandarain

I try to create custom render caption, but not work.
This is my code

<InstagramEmbed
      id="CB4kA1igV-d"
      style={{ width: '50%', height: 100 }}
      showAvatar={true}
      renderCaption={(caption) => {
          console.log('Caption ', caption);
          return (
              <Text numberOfLines={1} style={{ width: '100%' }}>
                  {caption}
               </Text>
           );
     }}
     showCaption={true}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions