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
Blank screen react-native-paper web #4387
Comments
Hey, I'm seeing you are trying to "inject" some CSS, did you try remove it? React-Native doesn't support CSS you have to do it using StyleSheet, something like
You can add some CSS directly in the |
I tried to configure react-native-web, as I said in the question. And yes, react-native-web will understand this CSS. |
React-native-web understand but it uses Stylesheet anyway you can see it here: https://necolas.github.io/react-native-web/docs/styling/ |
I think it's a bug in the integration of react-native-paper with react-native-web. At the very least the documentation is wrong, you can create a project from scratch by installing it with all the updated libs and you will see that it doesn't work. Regarding the css part, the react-native-paper doc itself suggests the css code as I sent it, as you can see here: https://callstack.github.io/react-native-paper/docs/guides/react-native-web Anyway, for me this no longer makes sense, as I said above I decided to use expo web since the react-native-web documentation itself recommends its use, as you can see in this section: https://necolas.github.io/react-native-web/docs/multi-platform/ |
Blank screen react-native-paper web
I followed all the documentation to try to configure react-native-paper to run in the browser too. Unsuccessfully.
At the beginning I was facing a lot of compilation errors, I adjusted the modules to resolve these errors and got to the point where I no longer had any errors. The site loads, you can see all the index.html code, just as it is in the documentation. And the app.bundle.js file is also loaded, I can see it in the resources tab.
However, there is only a white screen. I've tried everything to solve this problem, has anyone experienced this? Do you have any idea how to solve it?
Here are my codes that can help:
App.tsx
webpack.config.js
babel.config.js
The text was updated successfully, but these errors were encountered: