Update 100-touchables.md

pull/5057/head
Timofeev Artyom 10 months ago committed by GitHub
parent ed0e376d46
commit 53c9279049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/data/roadmaps/react-native/content/109-interactions/100-touchables.md

@ -59,7 +59,7 @@ In React Native, `Touchable` components are used to handle user interactions lik
</TouchableNativeFeedback>
```
- `TouchableHighlight`: The view will slightly change scale when pressed.
- `TouchableScale`: The view will slightly change scale when pressed.
```jsx
import { TouchableScale } from 'react-native-touchable-scale';
@ -74,4 +74,4 @@ In React Native, `Touchable` components are used to handle user interactions lik
</TouchableScale>
```
Each of these components is from the `react-native` package, except `TouchableScale` which is from `react-native-touchable-scale`. They can be used interchangeably depending on the type of interaction you want to provide. The main `props` used with these components are `onPress`, `onLongPress`, and some component-specific ones like `underlayColor` for `TouchableHighlight`.
Each of these components is from the `react-native` package, except `TouchableScale` which is from `react-native-touchable-scale`. They can be used interchangeably depending on the type of interaction you want to provide. The main `props` used with these components are `onPress`, `onLongPress`, and some component-specific ones like `underlayColor` for `TouchableHighlight`.

Loading…
Cancel
Save