Comments (7)
there are a couple of issues here:
- For the snack to work, you need to use code splitting as done at https://snack.expo.dev/@wcandillon/hello-snack
- Then on iOS and Android, ref.current might be null as pointed out by TypeScript. Leading to an expected error.
Are you using TypeScript? TypeScript gave the error immediately. These bug reports take a bit of time on our side to investigate so I hope you can investigate them as much as possible before reporting them.
from react-native-skia.
@wcandillon : About snacks in tsx it doesn't tell me anything: https://snack.expo.dev/wwx8ZeKJ0bwB0795doucE
from react-native-skia.
yes I love snack but it's probably not advanced enough but such project.
Do you have requirements to use snack? Sometimes I try to development on snack but it's actually really hard because you are missing a lot of the advanced tooling from VSCode
from react-native-skia.
@wcandillon : The main reason is easy I don't have to build the whole environment, I just put the code and I can use it.
In the past and even now, when I try to run the code on the PC there can be errors with the development environment, which wastes my time.
Especially with the weird errors that don't appear in anyone's documentation or issues.
from react-native-skia.
from react-native-skia.
@wcandillon : If I want to try it on the Mac, I simply need to add the package, files and install the node modules.
But what should I insert in the package.json to make it start?
from react-native-skia.
this is the way to do it: https://docs.expo.dev/tutorial/create-your-first-app/
from react-native-skia.
Related Issues (20)
- Does not work with Expo router server mode and api routes on web HOT 3
- Does not work with Expo Router v50 and Metro Bundler for Web HOT 3
- SkBitmap HOT 23
- Value is undefined, expecting an object HOT 2
- Support Hue Saturation Lightness `hsl()` & `hsla()` HOT 1
- Opacity is not working on Paragraph HOT 2
- Skia.ParagraphBuilder is undefined HOT 2
- hello-snack from tutorial is not working HOT 2
- Support RN Module for Web (to fix error when loading assets on Web with Metro) HOT 4
- Matrix4 is not working for skia elements
- Dev works but main/prod environment broken/have different behaviors on android HOT 1
- App Crashes When Scrolling with FlatList HOT 1
- Create driving animations HOT 3
- Dashed line HOT 1
- Height and width constant of a canvas
- Path dash return SkPath HOT 3
- Canvas onTouch Android HOT 3
- "Hello world" example code in Atlas document runs blank View, whereas "Animations" functions properly. HOT 1
- The useTexture function throws an error on Android: "Cannot read property 'getCanvas' of null" . HOT 6
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.