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

Passing incorrect animationName

Open Bayramito opened this issue 1 year ago • 2 comments

Hi,

This is a very common issue, i dunno if i'm the only one who gets it but,

once you pass the animationName incorrectly to the ref methods, the app is crashing.

In the .riv files sometimes the animation names can be uppercase or camel case, so we need some sort of fix to handle this situation. Like checking or converting both requested and existing animations names to lowercase.

Bayramito avatar Jul 16 '24 08:07 Bayramito

Yeah I get the same, if I get the state machine name, or the animation name or input name wrong it just crashes without any error. Would be good if it just didn't do anything, or just gave a warning.

CoopCodes avatar Sep 19 '24 04:09 CoopCodes

Same here.

And even if the error is normally handled like in this example: https://github.com/rive-app/rive-react-native/blob/ba12e7a5117a4d948af66f10dcd9d2ff304d2204/example/src/ErrorHandledManually.tsx

The url is IncorrectRiveFileUrl or if resourceName is MalformedFile, app instant crashes on iOS for me (didn't test on Android).

guval-gh avatar Nov 06 '24 19:11 guval-gh