GithubHelp home page GithubHelp logo

Comments (6)

towfiqi avatar towfiqi commented on May 26, 2024

Same here... with Cordova 7

from cordova-create-react-app.

gitcalculus avatar gitcalculus commented on May 26, 2024

Maybe
npm install --save babel-polyfill
and
import 'babel-polyfill';
to index.js will fixed empty screen. make sure import this before import 'react'.
I have got blank white screen too. and i use Android Studio to debug. find some erro log.(what i found is "Set is not defined"). find something like This.

from cordova-create-react-app.

towfiqi avatar towfiqi commented on May 26, 2024

Hi, I am here to report that I made a premature comment before. it works fine with Cordova 7, the issue was with my end.

from cordova-create-react-app.

lMoshe avatar lMoshe commented on May 26, 2024

Hey @towfiqi, what did you do to make it work? I still get an empty screen.

from cordova-create-react-app.

WTFlay avatar WTFlay commented on May 26, 2024

Hello,

The empty screen is about by the line:

<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">

When you run the index.html in a browser, you got some error about the Content-Security-Policy.

from cordova-create-react-app.

salmanul avatar salmanul commented on May 26, 2024

add 'unsafe-inline' to default-src,

<!--
        Customize this policy to fit your own app's needs. For more guidance, see:
            https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy
        Some notes:
            * gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
            * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
            * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
                * Enable inline JS: add 'unsafe-inline' to default-src
        -->

from cordova-create-react-app.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.