Comments (11)
nothing to do with resolution ?
shit !!!!!!!!!!!!!!!!! useless library. :-(
from react-native-canvas.
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.
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.
I was able to reproduce the resolution problem and plan to fix it in the near future.
from react-native-canvas.
Fixed at version 0.1.11
from react-native-canvas.
just updated to 0.1.11 and 0.1.14. Then nothing works anymore , Blank canvas. Missed something ?
from react-native-canvas.
Can you please provide more details?
from react-native-canvas.
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.
And which device were you trying this on?
from react-native-canvas.
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)
from react-native-canvas.
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)
- How do you get fillRect to occupy full dimensions? HOT 4
- ImageData/getImageData/putImageData strange behaviour HOT 2
- error HOT 2
- New architecture support for fabric HOT 1
- require cycle node_modules\react-native-canvas HOT 1
- canvas.loadFromJSON missing in react-native-canvas
- Error: Unable to resolve module ./CanvasRenderingContext2D HOT 1
- Not able to add fontFamily with font
- Application gets hang after 10 mins due to drawing on canvas continuously
- Can't draw image greater than 2048x2048 HOT 1
- Virtual/In-Memory Canvas HOT 1
- Can't draw Image on release HOT 1
- Doesn't work at all with Expo HOT 5
- Does not work with Expo 50 HOT 1
- `clearRect()` crashes in Expo 49 HOT 1
- does not work in react-native-windows
- How to draw local image on canvas using react-native-canvas HOT 1
- Setting width/height of canvas doesn't work HOT 2
- Error: Unable to resolve module `react/jsx-runtime` from `node_modules/react-native-canvas/dist/Canvas.js HOT 2
- The text truncates and doesn't show in multiline HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-canvas.