We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0889b0b commit 344ef56Copy full SHA for 344ef56
src/components/TouchableRipple/TouchableRipple.tsx
@@ -282,6 +282,7 @@ const TouchableRipple = (
282
// focused state is not ready yet: https://github.com/necolas/react-native-web/issues/1849
283
// state.focused && { backgroundColor: ___ },
284
state.hovered && { backgroundColor: hoverColor },
285
+ disabled && styles.disabled,
286
typeof style === 'function' ? style(state) : style,
287
]}
288
>
@@ -307,6 +308,11 @@ const styles = StyleSheet.create({
307
308
transition: '150ms background-color',
309
}),
310
},
311
+ disabled: {
312
+ ...(Platform.OS === 'web' && {
313
+ cursor: 'auto',
314
+ }),
315
+ },
316
borderless: {
317
overflow: 'hidden',
318
0 commit comments