Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulty Creating Custom Expo Module with Rive React Native View - Need Help #250

Open
daheeahn opened this issue Jun 3, 2024 · 1 comment

Comments

@daheeahn
Copy link

daheeahn commented Jun 3, 2024

I have a question about creating a new Rive React Native module on top of the expo module.
The reason I post this issue is to ask for help making a new expo module that supports the new architecture on the expo module.

I first created a new expo module using create-expo-module.
Here is a repository; expo-rive that I’ve created.

I almost copied codes with rive-react-native/android to expo-rive/android.

What I’m currently trying to in the expo-rive/example is rendering riv file like below. (Don’t mind the blue background.)
image

I set only the minimum code necessary to render the Rive view in the expo-rive/android, but it's not working like below.
The file should appear inside the pink background.
image

It's my first time creating a native module, so it's difficult. Even though I followed the expo module tutorial.

You can test it by running yarn android in example/android. I would appreciate it if you could tell me what might be wrong.

@t1gu1
Copy link

t1gu1 commented Jun 24, 2024

Not much of your links works..
So hard to help you.

Be aware than on Android specials caracters isn't supported.
my-animation.riv <- isn't valid and won't works cause of the -.
Should be my_animation or myAnimation.riv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants