expo-pixi icon indicating copy to clipboard operation
expo-pixi copied to clipboard

feat: make this package work

Open Bartozzz opened this issue 2 years ago • 4 comments

This is a refactor of expo-pixi package.

It fixes several issues, noticeably:

  • Locks in the latests compatible versions of pixi.js and pixi-filters:
    • Fixes https://github.com/expo/expo-pixi/issues/158;
  • Fixes peer dependencies of expo-asset and expo-gl:
    • Fixes https://github.com/expo/expo-pixi/issues/221
    • Fixes https://github.com/expo/expo-pixi/issues/222
    • Fixes https://github.com/expo/expo-pixi/issues/156
    • Fixes https://github.com/expo/expo-pixi/issues/61 (expo-asset-utils is no longer needed)
  • Fixes loading assets on production & fixes assets URLs on Android:
    • Fixes https://github.com/expo/expo-pixi/issues/103
    • Fixes https://github.com/expo/expo-pixi/issues/92
    • Fixes https://github.com/expo/expo-pixi/issues/66

Additionally, it adds a few features:

  • TypeScript support:
    • Fixes https://github.com/expo/expo-pixi/issues/145
  • Up-to-date examples:
    • Fixes https://github.com/expo/expo-pixi/issues/136
    • Fixes https://github.com/expo/expo-pixi/issues/86
    • Fixes https://github.com/expo/expo-pixi/issues/53
  • Adds support for Web (every example is working on both mobile & web):
    • Fixes https://github.com/expo/expo-pixi/issues/72
  • Removes side-effects by just exporting PIXI instead of messing with the global scope;
  • Built with expo-module-scripts;

Breaking changes:

  • It removes Spine, Signature, Sketch and FilterImage. I think it's reasonable for expo-pixi to just add support for pixi.js in Expo and do nothing more. Removed components can be easily reexported to their own packages to prevent the bloating of expo-pixi package. Removing this bloat will also close a lot of issues.

Closes https://github.com/expo/expo-pixi/pull/78 Closes https://github.com/expo/expo-pixi/pull/113

Bartozzz avatar May 29 '22 10:05 Bartozzz

Any update on this?

nipunasudha avatar Oct 26 '22 02:10 nipunasudha

Any update, this PR is really needed for me

nntam2013 avatar Oct 31 '22 02:10 nntam2013

What does it mean that "Removed components can be easily reexported to their own packages..."?
I only need the Signature component to work. How would I get it to work?

thargenediad avatar Oct 31 '22 18:10 thargenediad

Any update on this?

Any update, this PR is really needed for me

Honestly, I think this repository is dead. I'd recommend you simply copy the source code of my fork directly to your project.


What does it mean that "Removed components can be easily reexported to their own packages..."? I only need the Signature component to work. How would I get it to work?

I wanted to make this package as simple as possible. I decided to just keep the pixi.js abstraction and remove all additional React components, including Signature. Once this is merged, you'd have to copy Signature.js to your project.

Bartozzz avatar Nov 24 '22 17:11 Bartozzz