const sharePosition = new Animated.Value(1); const animatedOpacity = sharePosition.interpolate({inputRange, outputRange});