Skip to content

How to use libpag in the React Nactive framework? #2489

Discussion options

You must be logged in to vote

PAG only provides native rendering solutions for each platform. Some frameworks based on native platforms require the business layer to handle.
If you want to use PAG in React Native, you must do some wrapping. On the Android platform, you can obtain the texture data for each frame rendered by PAG. Similarly, on the iOS platform, you can obtain the CVPixelBuffer for each rendered frame.
You can refer to the encapsulation of other businesses in the Flutter framework. https://github.com/libpag/pag-flutter

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kevingpqi123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants