Comments (2)
Thank you for reporting this.
The examples in the documentation are compiled with typescript.
And we also have tests for this: https://github.com/Shopify/react-native-skia/blob/main/package/src/renderer/__tests__/e2e/Rect.spec.tsx#L61
If you think that there is a particular scenario that would enable us to trigger this potential bug, we will add it/fix it immediately.
from react-native-skia.
I encountered the same issue. I tried to use it like this
const barPath = Skia.Path.Make();
barPath.addRRect({
rect: { x, y, width, height },
topLeft: { x: r, y: r },
topRight: { x: r, y: r },
bottomLeft: { x: 0, y: 0 },
bottomRight: { x: 0, y: 0 },
});
I followed the described format from the documentation and the allowed type as I find it in the TS code. However, I still get a runtime error saying 'Exception in HostFunction: Value is undefined, expected a number'. I get a runtime error for both the Path.Make
method and using the RoundedRect
component directly. So, it seems to me something might go wrong somewhere behind the scenes in the source code when handling the bottom/topLeft/Right
props.
from react-native-skia.
Related Issues (20)
- Headless Opacity HOT 3
- Document the relationship between offscreen canvas and pixel density HOT 10
- Support Dynamically Created and Destroyed <Canvas> HOT 1
- is it possible to pause animation from useAnimatedImageValue HOT 2
- Animate spritesheet HOT 1
- Tooltip text is not visible HOT 2
- Difficulty setting different corner radius for each corner.
- [IOS] build error HOT 2
- Cannot use custom radii for rounded rectangle HOT 1
- Segfault `RNSkia::RNSkOpenGLCanvasProvider::surfaceSizeChanged` HOT 3
- TextAlign in Paragraph maker crashes android HOT 1
- Android Build Error HOT 2
- Issue with Rendering SVGs Using xlink:href HOT 1
- Android crash: SIGSEGV HOT 1
- text in ImageSVG will not shown HOT 6
- does not compile on android
- the new useClock doesn't update HOT 2
- Path interpolation not working when path is rendered via map and has end and start props
- Interpolation Issues When Reusing an Interpolated Path Across Multiple Path Nodes
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-skia.