Open reboottime opened 3 months ago
Pressable: supports detecting various stage of press event
<Pressable onPress={onPressFunction}>
<Text>I'm pressable!</Text>
</Pressable>
- to have the same UI interaction effect for IOS and Android
```ts
<Pressable
android_ripple={{ color: '#210644' }}
onPress={props.onDeleteItem.bind(this, props.id)}
style={({ pressed }) => pressed && styles.pressedItem}
>
<Text style={styles.goalText}>{props.text}</Text>
</Pressable>
React, React Native, and React DOM
Key Differences Between React Native and React DOM
The image below summarizes the relationship between React, React Native, and React DOM: