Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesnt render again when text changed #44

Open
Cetger opened this issue Jun 11, 2021 · 2 comments
Open

Doesnt render again when text changed #44

Cetger opened this issue Jun 11, 2021 · 2 comments

Comments

@Cetger
Copy link

Cetger commented Jun 11, 2021

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?

@maherzaidoune
Copy link
Owner

Hi, Sorry I was quite busy and didn't look into the package for a while, I'll be working on that in the next few days.

@jphim281
Copy link

I have same issue. I am using RNUrlPreview in Flatlist renderItems. When Item changed, Everything changed but not RNUrlPreview,
But when I click on next Item, Then it shows previous one which I selected last time. Hope you understand.
Like: I have 5 groups. Everyone has its own text and URLs. But when I open first, then It works fine, But when I click on Second, it shows first Item's URL, when I click 3rd Group, then it shows second group's URL. Don't know why..
Please update if you got the solution, or another alternative of RNUrlPreview.
waiting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants