rive-react-native icon indicating copy to clipboard operation
rive-react-native copied to clipboard

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

Open daheeahn opened this issue 1 year ago • 1 comments

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.

daheeahn avatar Jun 03 '24 09:06 daheeahn

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

t1gu1 avatar Jun 24 '24 00:06 t1gu1