Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6480

Property 'Ripple' does not exist on type 'typeof TouchableNativeFeedback'.ts(2339)

$
0
0

I'm trying to create a button using TouchableNativeFeedback but I ran into an error. This is my code:

export const Button = ({props}: Props) => {  const [rippleColor, setRippleColor] = useState(primaryColor);  const [rippleOverflow, setRippleOverflow] = useState(true);  return (<TouchableNativeFeedback      onPress={onPress}      background={TouchableNativeFeedback.Ripple(rippleColor, rippleOverflow)}><View}>{children}</View></TouchableNativeFeedback> )}

With this code I got this error

Property 'Ripple' does not exist on type 'typeof TouchableNativeFeedback'.ts(2339)

Anyone knows what should I do? I've tried passing the rippleColor& rippleOverflow as props and sets the type on type Props = {} but it doesn't work either.


Viewing all articles
Browse latest Browse all 6480

Trending Articles


FLASHBACK WITH SIRASA FM AT GALGAMUWA 2022


Mp3 Download: Mdu - Mazola


Imitation gun was fired at motorist in Leicester road-rage incident


Ndebele names


MCKINNEY EMALINE “EMMA” OF WES...


Okra & Motia — The Workshop (Prod by Hammer)


Skint TV teen to be sentenced


Moondru Mudichu 19-09-2017 – Polimer tv Serial


YOSVANI JAMES Arrested by Miami-Dade County Corrections on Jan 10, 2017


Stories • Goddess Stepmom



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>