Coder Social home page Coder Social logo

Comments (11)

tougbia09 avatar tougbia09 commented on July 17, 2024 4

nothing to do with resolution ?

shit !!!!!!!!!!!!!!!!! useless library. :-(

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024 2

Hey @tougbia09,

I'm sorry to read that you're frustrated. react-native-canvas is a project by people for free on their free time. We always seek to enhance it and put a lot of effort for this but unfortunately it is still far from perfect.

I do expect comments to use respectful language and users to understand that we're doing our best.

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

The circle to the right is an actual image, while there should be a rendered one to the left which apparently it doesn't work. It is a known issue but it has nothing to do with resolution

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

I was able to reproduce the resolution problem and plan to fix it in the near future.

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

Fixed at version 0.1.11

from react-native-canvas.

tougbia09 avatar tougbia09 commented on July 17, 2024

just updated to 0.1.11 and 0.1.14. Then nothing works anymore , Blank canvas. Missed something ?

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

Can you please provide more details?

from react-native-canvas.

tougbia09 avatar tougbia09 commented on July 17, 2024

import React from 'react';
import Canvas,{Image as CanvasImage, Path2D} from 'react-native-canvas';
import {StatusBar, StyleSheet, Text, View } from 'react-native';

export default class App extends React.Component {
handleCanvas = (canvas) => {
canvas.width = 300;
canvas.height = 300;
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'purple';
ctx.fillRect(0, 0, 100, 100);
}
render() {
return (
<Canvas ref={this.handleCanvas}/>
)
}
}

android 6.0

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

And which device were you trying this on?

from react-native-canvas.

tougbia09 avatar tougbia09 commented on July 17, 2024

INFINIX HOT S . But I think that its caused by a weird scroll which appear ! it behaves like a embded
webview. Have a look the screenshot (android emulator samsung s7 - 6.0)

capture du 2017-09-27 17-37-39

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

For me the latest version works well on Android 6.0 emulator (on a Nexus One like emulator). Will try this device.

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.