
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
@ankipro/react-native-canvas-view
Advanced tools
React Native library for drawing on iOS, leveraging the power of Apple PencilKit to provide a seamless and immersive canvas drawing experience. Ideal for applications that require precise and natural drawing capabilities.
Versatile Drawing Tools
: Choose from a variety of drawing tools, including brushes, pencils, erasers, and more.Customizable Brushes
: Customizable brush sizes, colors, and styles.Undo/Redo Functionality
Save
: Save your masterpieces in Base64 format.yarn add @ankipro/react-native-canvas-view
... and pods
npx pod-install
import CanvasView from "@ankipro/react-native-canvas-view";
// ...
<CanvasView ref={canvasRef} />
For more information see example.
Name | Type | Description |
---|---|---|
ref | CanvasViewRef | See methods below |
style | ViewStyle | Base RN View style |
onUndoRedoChange | (undoRedo: {canUndo: boolean; canRedo: boolean}) => void | Check ability undo/redo |
Name | Type | Description |
---|---|---|
.showToolbar() | () => void | Show Toolbar |
.hideToolbar() | () => void | Hide Toolbar |
.undo() | () => void | Reverse the last action |
.redo() | () => void | Reapply previously undone action |
.getDrawingBase64() | (onComplete: (base64: string) => void) => void | Get Base64 image |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
React Native canvas drawing view for iOS
We found that @ankipro/react-native-canvas-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.