react-native-embed-instagram icon indicating copy to clipboard operation
react-native-embed-instagram copied to clipboard

can not set custom render caption

Open gandarain opened this issue 4 years ago • 0 comments

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}
/>

gandarain avatar Jun 30 '20 09:06 gandarain