I have the following code:
const renderRightActions = (_, dragX) => {
const trans = dragX.interpolate({
inputRange: [0, 50, 100, 101],
outputRange: [60, 110, 110, 110],
});
return (
<Animated.View style={{ transform: [{ translateX: trans }] }}>
<RectButton
onPress={handleOnDeleteButtonPress}
style={[
styles.trashIconContainer,
{
backgroundColor: colors.primary,
},
]}
>
<Icon
name="trash-can"
type="material-community"
size={26}
color={colors.white}
/>
</RectButton>
</Animated.View>
);
};
As you can see, I am ignoring the first argument of the method using the underscore character.
How can I document it in JSDoc? I have tried this:
/**
* Renders the right actions for the `Swipeable`.
*
* @param {any} _ - Ignored parameter.
* @param {Animated.AnimatedInterpolation} dragX - Drag X value.
* @returns {React.ReactNode} The `Swipeable` right action.
*/
But not sure if there is any standardized way to handle this situation. Any ideas?