Coder Social home page Coder Social logo

Comments (19)

assertchris avatar assertchris commented on August 16, 2024 2

Yeah, sorry about the delay folks. Been preparing for a conference (happening this week) so it's going to be at least another week until I can get that done...

from react-native-canvas.

iddan avatar iddan commented on August 16, 2024

Thank you for reporting. Can you please give a little more details about the problem you're facing? Can you create a demo project?

from react-native-canvas.

shivenj avatar shivenj commented on August 16, 2024

When i make a build on ios device . It says loading from pre installed bundles , at that time it canvas doesnot load .

from react-native-canvas.

shivenj avatar shivenj commented on August 16, 2024

Does it require development server to be live all the time ?

from react-native-canvas.

shivenj avatar shivenj commented on August 16, 2024

ok here is what i did. i cloned your example . followed Run on Device guide#Building your app for production https://facebook.github.io/react-native/docs/running-on-device.html
simulator screen shot 18-aug-2017 2 03 07 pm

same when i run normally with my phone and server on different wifi network.
Please tell me which step i am missing.

from react-native-canvas.

shivenj avatar shivenj commented on August 16, 2024

it was an issue with index.html file. solved it . thanks a lot

from react-native-canvas.

iddan avatar iddan commented on August 16, 2024

cool, thank you

from react-native-canvas.

micahwood avatar micahwood commented on August 16, 2024

How did you solve this issue? It looks like I am having the same thing. When I try to build the application it does not include the index.html file, so it tries to load it from my dev server.

from react-native-canvas.

iddan avatar iddan commented on August 16, 2024

When using react-native-canvas you should not provide your own index.html. Can you provide your config?

from react-native-canvas.

micahwood avatar micahwood commented on August 16, 2024

Right, I am not providing my own index.html file, I am just using this component as is.
When testing my app while running npm start I see this output in the logs
"http://192.168.1.60:8081/assets/node_modules/react-native-canvas/dist/index.html?platform=android&hash=b8e2fe68dc8d3e09d95158c92a1a1ffe" "Mozilla/5.0 (Linux; Android 7.1.2; Pixel Build/NJH47F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Mobile Safari/537.36"

If I am not running the dev server I get the following error when trying to display a canvas:
"description": "net::ERR_CONNECTION_REFUSED", "url": "http://192.168.1.60:8081/assets/node_modules/react-native-canvas/dist/index.html?platform=android&hash=b8e2fe68dc8d3e09d95158c92a1a1ffe"

When tat occurs nothing displays where the canvas should be. This happens when running the dev version of the application as well as when I use react-native run-android --variant=release

Which config file are you wanting to see? I haven't modified any of the android config files beyond what is provided when running react-native init

from react-native-canvas.

iddan avatar iddan commented on August 16, 2024

Why would you turn off the dev server during development?

from react-native-canvas.

shivenj avatar shivenj commented on August 16, 2024

when you create a production build , android pre fetch all the assets (png,jpg,html) to android assets folder , index.html is also fetched and when you require index.html it is loaded from assets folder. but the path inside the index.html is not found , so you need to copy other files to asset folder

from react-native-canvas.

iddan avatar iddan commented on August 16, 2024

Interesting.. Which files should be copied?

from react-native-canvas.

shivenj avatar shivenj commented on August 16, 2024

all the files as index.html require webview.js and all or you can give absolute path in index.html. See this facebook/react-native#505

from react-native-canvas.

iddan avatar iddan commented on August 16, 2024

#14 will handle this

from react-native-canvas.

shivenj avatar shivenj commented on August 16, 2024

yes as he has copied all content of html into canvas.js

from react-native-canvas.

iddan avatar iddan commented on August 16, 2024

indeed :)

from react-native-canvas.

iddan avatar iddan commented on August 16, 2024

If you'd like you can help @assertchris finish it so it could be merged

from react-native-canvas.

iddan avatar iddan commented on August 16, 2024

0.1.10 should fix this

from react-native-canvas.

Related Issues (20)

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.