Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
philter committed Apr 3, 2024
1 parent 0e4de89 commit 34d82b2
Showing 1 changed file with 21 additions and 29 deletions.
50 changes: 21 additions & 29 deletions src/Rive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,40 +315,32 @@ const RiveContainer = React.forwardRef<RiveRef, Props>(
reset,
setTextRunValue,
}),
[
play,
pause,
stop,
reset,
setInputState,
fireState,
setTextRunValue,
]
[play, pause, stop, reset, setInputState, fireState, setTextRunValue]
);

return (
<View style={[styles.container, style]} ref={ref as any} testID={testID}>
<View style={styles.children}>{children}</View>
<RiveViewManager
ref={riveRef}
resourceName={resourceName}
isUserHandlingErrors={isUserHandlingErrors}
autoplay={autoplay}
fit={fit}
url={url}
style={styles.animation}
onPlay={onPlayHandler}
onPause={onPauseHandler}
onStop={onStopHandler}
onLoopEnd={onLoopEndHandler}
onStateChanged={onStateChangedHandler}
onRiveEventReceived={onRiveEventReceivedHandler}
onError={onErrorHandler}
alignment={alignment}
artboardName={artboardName}
animationName={animationName}
stateMachineName={stateMachineName}
/>
<RiveViewManager
ref={riveRef}
resourceName={resourceName}
isUserHandlingErrors={isUserHandlingErrors}
autoplay={autoplay}
fit={fit}
url={url}
style={styles.animation}
onPlay={onPlayHandler}
onPause={onPauseHandler}
onStop={onStopHandler}
onLoopEnd={onLoopEndHandler}
onStateChanged={onStateChangedHandler}
onRiveEventReceived={onRiveEventReceivedHandler}
onError={onErrorHandler}
alignment={alignment}
artboardName={artboardName}
animationName={animationName}
stateMachineName={stateMachineName}
/>
</View>
);
}
Expand Down

0 comments on commit 34d82b2

Please sign in to comment.