Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
rn-draw-expo
Advanced tools
React native draw tool using react-native-svg.
First install react-native-svg and follow the directions to properly set it up: https://github.com/react-native-community/react-native-svg
Install rn-draw with npm install -S rn-draw
or yarn add rn-draw
Make sure you follow the proper guidelines on https://expo.io to set up your react native application with expo sdk.
Install rn-draw with npm install -S rn-draw
or yarn add rn-draw
expo version <= 21 or react native <= 48 w/ react 16 alpha 12 --- rn-draw@0.0.4
expo version = 22 or react native = 49 w/ react 16 beta 5 --- >= rn-draw@0.0.5
import RNDraw from 'rn-draw'
<RNDraw
strokes={[]}
containerStyle={{backgroundColor: 'rgba(0,0,0,0.01)'}}
rewind={(undo) => {this._undo = undo}}
clear={(clear) => {this._clear = clear}}
color={'#000000'}
strokeWidth={4}
onChangeStrokes={(strokes) => console.log(strokes)}
/>
### Props
**strokes** [Array] - set with some initial data. (defaults to [])
**containerStyle** [Object] - style for the container of the draw component.
**color** [String] - string representation of pen color (defaults to '#000000')
**strokeWidth** [Number] - width of pen strokes (defaults to 4)
**rewind** [Func] - a function for passing the draw component's undo functionality
**clear** [Func] - a function for passing the draw component's clear functionality
**onChangeStrokes** [Func] - callback that is called when the draw changes.
## Work in progress
Smoothing out pen strokes (curves)
Image backgrounds
Optimizations in pointer
FAQs
Drawing library for react-native using svg.
The npm package rn-draw-expo receives a total of 1 weekly downloads. As such, rn-draw-expo popularity was classified as not popular.
We found that rn-draw-expo 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.