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

Support web #40

Open
johannbuscail opened this issue Feb 12, 2021 · 3 comments
Open

Support web #40

johannbuscail opened this issue Feb 12, 2021 · 3 comments

Comments

@johannbuscail
Copy link

Hey!
I really love this library, and it works perfectly on native platforms.
The only thing is I'm using my app on the web with react-native-web.
I get this error:

TypeError: Cannot read property 'style' of undefined
Module.../../../../../../../../../Users/kristinabuscail/nodejs/wavychat-expo/node_modules/react-native-url-preview/index.js
node_modules/react-native-url-preview/index.js:252
249 | onLoad: PropTypes.func,
250 | onError: PropTypes.func,
251 | text: PropTypes.string,

252 | containerStyle: ViewPropTypes.style,
253 | imageStyle: ViewPropTypes.style,
254 | faviconStyle: ViewPropTypes.style,
255 | textContainerStyle: ViewPropTypes.style,
View compiled

Would be really cool to have your help.
BTW could you add typescript types. Would be much easier

@yalisun
Copy link

yalisun commented Mar 9, 2021

hey, I got the same issue. Looking for a solution.

@maherzaidoune
Copy link
Owner

Hello, Thanks for your feedback, I'll try to look into that in the next few days, if anyone could help in that, PRs are very welcome

@dfabreguette
Copy link
Contributor

Hi, here's what I did to make module compatible with react-native-web :

#48

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

4 participants