Skip to content

Doesnt render again when text changed #44

@Cetger

Description

@Cetger

I have an input and im trying to develop input as twitter. In this case, i needed to check links and display them. If this library works once correct, doesnt change after that.

const UrlPreview = ({ text }) => {
  useEffect(() => {}, [text]);
  return (
    <View style={{ width: '100%', height: 200 }}>
      <Text>{text}</Text>
      <RNUrlPreview text={text} />
    </View>
  );
};

I'm passing my changevalue from input here. I added text component to check text is changed, yes text is changed but rnurlpreview doesnt display new url. I hope it is clear, is there any suggestion?

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