I am trying to learn reactnative(expo) with typescript and I have an issue where typescript shows me the following error Type '{ rippleColor: any; }' is not assignable to type 'ColorValue | null | undefined'
while adding android_ripple color. How do I solve this?
my component
import { Pressable, Text, View } from "react-native";const Button = ({ rippleColor, }) => { return (<View><Pressable disabled={disabled} android_ripple={{ color: { rippleColor }, borderless: true }} //here is where typescript complains onPress={onPress}><Text> {text}</Text></Pressable></View> );};