Comments (9)
I'll take a look at it today!
from expo-pixi.
Awesome, thanks Evan
from expo-pixi.
@EvanBacon I incorrectly diagnosed the issue. The first line is captured, but this.sketch.lines in the onChange function is always one line behind.
So when the first line is drawn this.sketch.lines is [], then after the second line is drawn then this.sketch.lines contains the first line. Third line drawn and it contains the first two, and so on.
This means that the actual problem is that I lose the last line that the user inputs.. could this be an async issue on my part?
from expo-pixi.
I have a fix - this.sketch.points contains the points of the last line. So you can append this to this.sketch.lines to get all the lines that the user inputs, including the last line.
Not ideal but does the job.
from expo-pixi.
Will look into a long term solution. Until then I would recommend using the new Signature
component.
from expo-pixi.
how to use Signature with backgroud image? @EvanBacon
from expo-pixi.
from expo-pixi.
@EvanBacon which new Signature component would can i use in Expo,
from expo-pixi.
@EvanBacon This still seems to be an issue. The reason I'm using sketch instead of signature is because I need it to be a transparent background. @isthaison showed this should be possible. How?
from expo-pixi.
Related Issues (20)
- Unable to Use ExpoPixi in VS Code HOT 1
- TypeError: undefined is not an object (evaluating '_expo.default.GLView) HOT 6
- Unable to resolve "uuid/v1" from "node_modules/@expo/browser-polyfill/src/DOM/HTMLImageElement.js" HOT 2
- iOS 14 support HOT 1
- Asset not loading for Sprite Sheet animation
- 'expo' does not contain a default export
- Library doesn't work with Camera Roll assets HOT 3
- Not compatible with Expo sdk 39 HOT 5
- Typescript Definition File HOT 1
- Examples and Pixi Spine is not working
- Issue when running Signature on Expo Web
- Upgrade to pixi 5.xxx HOT 1
- Outdated expo-gl peer-dependency HOT 3
- GLView doesn't show anything
- Unable to resolve module @pixi/core HOT 10
- Expo Client 2.21.5 (SDK 39) this.nativeVaoExtension.createVertexArrayOES is not a function HOT 15
- Sketch example crashes on Android (undefined is not an object (evaluating '_this.lastPoint.x')) HOT 6
- Incompatible with Expo 43 HOT 1
- To make it compatible with expo SDK 44
- Incompatible with Expo 46
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 expo-pixi.