You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ See [How to choose cross-platform tech](https://dev.to/codinsonn/why-use-react-n
49
49
> "The best way to learn is through the Pull Requests"
50
50
> -- Theo / @t3dotgg
51
51
52
-
[](https://github.com/Aetherspace/universal-app-router/pulls)
52
+
[](https://github.com/FullProduct-dev/universal-app-router/pulls)
53
53
54
54
**PR & branch based plugins will provide you with the ability to:**
You can pass either `props.children` or `props.text` to the Button component. If you pass `props.children`, it will render the children as the button content. This supports JSX and other React Components. Whereas `props.text` only supports actual text strings.
4
+
5
+
If you pass both, `props.children` will be used instead `props.text`.
6
+
7
+
### `style` prop
8
+
9
+
Instead of using just `className`, you can also pass a `style` prop. We will combine the styles from `className` and `style` props. This allows you to use inline styles for dynamic styling while still applying CSS classes.
10
+
11
+
If both classNames and `style` prop influence the same style, the `style` prop will take precedence.
12
+
13
+
### `onPress` event handlers
14
+
15
+
Just like react-native's Pressable, our `Button` component supports the `onPress` prop, alongside other event handlers:
16
+
17
+
-[`onPress()`](https://reactnative.dev/docs/pressable#onpress) - Called when a touch is released.
18
+
-[`onPressIn()`](https://reactnative.dev/docs/pressable#onpressin) - Called when a touch is initiated.
19
+
-[`onPressOut()`](https://reactnative.dev/docs/pressable#onpressout) - Called when a touch is released, after `onPressIn`.
20
+
-[`onHoverIn()`](https://reactnative.dev/docs/pressable#onhoverin) - Called when the pointer enters the button area.
21
+
-[`onHoverOut()`](https://reactnative.dev/docs/pressable#onhoverout) - Called when the pointer leaves the button area.
22
+
-[`onLongPress()`](https://reactnative.dev/docs/pressable#onlongpress) - Called when a long press gesture is detected.
23
+
-[`onBlur()`](https://reactnative.dev/docs/pressable#onblur) - Called when the button loses focus.
24
+
-[`onFocus()`](https://reactnative.dev/docs/pressable#onfocus) - Called when the button gains focus.
25
+
26
+
Naturally, when `props.disabled` is `true`, all event handlers will be ignored.
27
+
28
+
If you pass both `href` and `onPress` props, we will try to execute both. Giving preference to the `onPress` handler first.
0 commit comments