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

Work as PWA. #1236

Closed
vlimag opened this issue Jan 31, 2019 · 4 comments
Closed

Work as PWA. #1236

vlimag opened this issue Jan 31, 2019 · 4 comments

Comments

@vlimag
Copy link

vlimag commented Jan 31, 2019

Hello,
I would like to know if PWA is current supported?

The app that I am integrating with react-native-web runs on chrome and safari normally.
The issue is that when I create the home shortcut, on Android, the app displays a blank screen, and on IOS the app shows up as on the Browser. (with search bar, but components are rendered normally)

And suggestion to get this solved?

Best Regards and congratulations for the initiative.

@RangerMauve
Copy link

I think that's related to configuration in your HTML file rather than any of the JS in react-native-web. 😅

I'd suggest double checking your manifest and checking for errors in the dev tools.

@necolas
Copy link
Owner

necolas commented Jan 31, 2019

This is a component library for React DOM, so it will work for any PWA. The problems you are having are unrelated to this library. Perhaps ask on Stackoverflow or similar

@necolas necolas closed this as completed Jan 31, 2019
@vlimag
Copy link
Author

vlimag commented Feb 1, 2019

Thanks for your response @RangerMauve and @necolas .

I am new to react native web.
My doubt is about how can I cache the files bundled from react native to react.
Have you done that?
If yes, could you please give me some direction?

Thanks in advance.

@0xpatrickdev
Copy link

Hey @vlimag, as @RangerMauve and @necolas stated, this library is simply a way to render React Native components in React DOM. The way your app is bundled and distributed is entirely up to you, and out of the scope of this library.

As a suggestion, you could lean on something like create-react-app so you don't have to worry as much about configuring builds, and you can see an example of what that'd look like here: #1192. But as @RangerMauve said, it seems like this issue has to do with your manifest.json, and not the entire build in general. There is some documentation on PWA's and CRA here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

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