Skip to content

SilentTiger/canvas-react-native

Repository files navigation

canvas-react-native

a canvas component implement in native

Installation

npm install canvas-react-native

Capability

🟢 Fully support 🟡 Most support 🟠 Partial support 🔴 Not support ⚪️ Not yet processed

Properties

Property Name iOS Android Comment
globalAlpha 🟢 🟢
globalCompositeOperation 🟢 🟢
imageSmoothingEnabled 🔴 🟢
imageSmoothingQuality 🔴 🟢
fillStyle 🟡 🟢
strokeStyle 🟢 🟢
shadowBlur 🟢 🟢
shadowColor 🟢 🟢
shadowOffsetX 🟢 🟢
shadowOffsetY 🟢 🟢
filter 🔴 🟢
lineCap 🟢 🟢
lineDashOffset 🟢 🟢
lineJoin 🟢 🟢
lineWidth 🟢 🟢
miterLimit 🟢 🟢
direction 🔴 🟢
font 🟢 🟢
textAlign 🔴 🟢
textBaseline 🔴 🟢

Methods

Method Name iOS Android Comment
restore 🟢
save 🟢
getTransform
resetTransform 🟢
rotate 🟢
scale 🟢
setTransform 🟢
transform 🟢
translate 🟢
createLinearGradient
createPattern 🔴 🔴
createRadialGradient
clearRect
fillRect 🟢
strokeRect 🟢
beginPath 🟢
clip
fill 🟢
isPointInPath
isPointInStroke
stroke 🟡
drawFocusIfNeeded
scrollPathIntoView
fillText
measureText
strokeText
drawImage
createImageData 🟢
getImageData
putImageData 🟢
getLineDash 🟢
setLineDash 🟢
arc 🟢
arcTo 🟢
bezierCurveTo 🟢
closePath 🟢
ellipse
lineTo 🟢
moveTo 🟢
quadraticCurveTo 🟢
rect 🟢

License

MIT

About

a canvas component implement in native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published