TL;DR: The getSequenceArray incline function isn't automatically workletized by reanimated 2.3+, which caused crashes/freezing when using a sequence on iOS and Android on anything over reanimated 2.2.4.
The fix just involves moving it out to the file level, adding 'worklet', and passing in any needed params.
See: https://github.com/nandorojo/moti/issues/195
TL;DR: The
getSequenceArray
incline function isn't automatically workletized by reanimated 2.3+, which caused crashes/freezing when using a sequence on iOS and Android on anything over reanimated 2.2.4.The fix just involves moving it out to the file level, adding
'worklet'
, and passing in any needed params.Closes https://github.com/nandorojo/moti/issues/195