Skip to content

Tags: daehyeonmun2021/react-native-skia

Tags

v0.1.202-beta

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add per-thread shared Skia contextes on iOS (Shopify#1775)

Offscreen and onscreen surfaces created on the same thread share the same Skia context.
Code has been refactored to have somewhat of a symmetry with our OpenGL integration on Android.

v0.1.201-beta

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Android: New OpenGL based rendering for windowed and offscreen surfac…

…es (Shopify#1722)

v0.1.200-beta

Remove breaking install step

v0.1.199-beta

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Removed symlinks from Android (Shopify#1766)

We've had som many stupid errors with symlinks on Android - this commit removes the symlinks.

- Updated package.json to skip copy install-npm.js script on build-npm
- Updated paths in CMakeLists.txt
- Removed symlinks in example project
- Removed npm install script that created the symlinks.

Fixes a lot of issues, latest one is Error: EPERM: operation not permitted, lstat Shopify#1718

Co-authored-by: William Candillon <wcandillon@gmail.com>

v0.1.197-beta

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Shopify#1626: Fixing access to Skia Values from UI Thread (Shopify#1639)

* Fixing access to Skia Values from UI Thread

Previously the following would crash:

```ts
const x = useValue(50);
  const y = useValue(50);

  const gesture = useMemo(
    () =>
      Gesture.Pan().onChange(({ changeX, changeY }) => {
        x.current += changeX;
        y.current += changeY;
      }),
    []
  );
```

This was caused by the Skia Values storing its value in a JS object for fast access causing a crash when trying to write to this value from another runtime (REA / Main UI Thread)

This commit updates the Skia Value to use the JsiValue class instead - which unwraps / wraps the value to native primitives. There might be a small overhead doing this, but I've not been able to measure such a thing.

Fixes Skia value can't update on UI thread Shopify#1626

* Fix lint

* Fix ci

---------

Co-authored-by: William Candillon <wcandillon@gmail.com>

v0.1.196-beta

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Removed duplicateStrategy = include to avoid duplicating files (Shopi…

…fy#1674)

When packaging in Android (prefab) we've now removed the duplicateStrategy=include since we've added scripts that removes duplicate header files (related to [iOS] "Multiple commands produce" Shopify#1619) on iOS.

Co-authored-by: William Candillon <wcandillon@gmail.com>

v0.1.195-beta

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Added immediate rendering of Skia Views (Shopify#1614)

* Added immediate rendering of Skia Views

Instead of waiting till the draw loop calls us back, the view will now perform a direct render after adding itself to the draw loop to ensure that the view is rendered as quickly as possible.

Fixes Skia mount startup time Shopify#610 (again)

* Added support for direct rendering on first frame

- Added renderImmediate() method that can be called on the main UI thread to render outside the drawing loop
- Added return value to render method in providers to enable propagating the result value
- Implemented drawRect on iOS to render immediate

* Removed unused method

* Added #pragma

* Added reset of redraw counter when renderImmediate is called

* Added SVG Comparison example

- Added RN SVG
- Added navigation tabbar
- Added comparison example

* Simplified OpenGL C++ renderer a bit

- Moved connecting Skia / OpenGL to render method - it doesn't need to be done only once.

* Added immediate rendering to the Android C++ Base View class

When surface is available, the Android view  will now try to perform an immediate rendering like on iOS.

* Lint

* Lint

* Fixed CI

* Fixed inconcisency in performDraw in SkPictureView Renderer

Added test to see if picture is set inside of the renderer, not outside.

* Remove redudant example

* Remove redudant example

* 💚

* Remove log

* 💚

---------

Co-authored-by: William Candillon <wcandillon@gmail.com>

v0.1.194-beta

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request Shopify#1650 from Shopify/fix/1633-android-avoid-d…

…ouble-rendering

Android/Snapshots: Fixed so that we don't render children twice

v0.1.193-beta

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix PNPM symlink issue (Shopify#1608) (Shopify#1616)

Co-authored-by: Jonny Burger <jonathanburger11@gmail.com>

v0.1.192-beta

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request Shopify#1577 from Shopify/onsize

Add support for shared values in onSize