@tamagui/core 1.74.13 → 1.74.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "1.74.13",
3
+ "version": "1.74.15",
4
4
  "source": "src/index.tsx",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -35,16 +35,16 @@
35
35
  "native-test.d.ts"
36
36
  ],
37
37
  "dependencies": {
38
- "@tamagui/react-native-use-pressable": "1.74.13",
39
- "@tamagui/react-native-use-responder-events": "1.74.13",
40
- "@tamagui/use-event": "1.74.13",
41
- "@tamagui/web": "1.74.13"
38
+ "@tamagui/react-native-use-pressable": "1.74.15",
39
+ "@tamagui/react-native-use-responder-events": "1.74.15",
40
+ "@tamagui/use-event": "1.74.15",
41
+ "@tamagui/web": "1.74.15"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": "*"
45
45
  },
46
46
  "devDependencies": {
47
- "@tamagui/build": "1.74.13",
47
+ "@tamagui/build": "1.74.15",
48
48
  "@testing-library/react": "^14.0.0",
49
49
  "csstype": "^3.0.10",
50
50
  "react": "^18.2.0",
package/src/index.tsx CHANGED
@@ -123,14 +123,11 @@ setupHooks({
123
123
 
124
124
  useEvents(viewProps, events, { pseudos }, setStateShallow, staticConfig) {
125
125
  if (process.env.TAMAGUI_TARGET === 'native') {
126
- const attachFocus = !!pseudos?.focusStyle
127
- if (attachFocus) {
128
- viewProps.onFocus = composeEventHandlers(viewProps.onFocus, () => {
129
- setStateShallow({ focus: true })
130
- })
131
- viewProps.onBlur = composeEventHandlers(viewProps.onBlur, () => {
132
- setStateShallow({ focus: false })
133
- })
126
+ if (events?.onFocus) {
127
+ viewProps['onFocus'] = events.onFocus
128
+ }
129
+ if (events?.onBlur) {
130
+ viewProps['onBlur'] = events.onBlur
134
131
  }
135
132
 
136
133
  if (staticConfig.isInput) {