Fix icon buttons not working

This commit is contained in:
Zoe Roux 2023-04-04 01:37:27 +09:00
parent 592c92785f
commit 840b0c07ff
5 changed files with 12 additions and 12 deletions

View File

@ -32,7 +32,7 @@
"react-native-reanimated": "^3.0.2",
"react-native-svg": "13.8.0",
"react-native-video": "^6.0.0-alpha.5",
"react-native-web": "0.0.0-c26cb9b08",
"react-native-web": "0.19.1",
"solito": "^3.0.0",
"superjson": "^1.12.2",
"yoshiki": "1.2.2",

View File

@ -23,7 +23,7 @@ import { z } from "zod";
export const imageFn = (url: string) =>
Platform.OS === "web"
? `/api/${url}`
? `/api${url}`
: process.env.PUBLIC_BACK_URL + url;
export const ImagesP = z.object({

View File

@ -81,7 +81,6 @@ export const IconButton = forwardRef(function _IconButton<AsProps = PressablePro
return (
<Container
ref={ref as any}
accessibilityRole="button"
focusRipple
{...(css(
{

View File

@ -20,7 +20,7 @@
import { forwardRef, ReactNode } from "react";
import { Platform, Pressable, TextProps, View, PressableProps } from "react-native";
import { LinkCore, TextLink } from "solito/link";
import { LinkCore, TextLink, useLink } from "solito/link";
import { useTheme, useYoshiki } from "yoshiki/native";
import { alpha } from "./themes";
@ -73,10 +73,11 @@ export const Link = ({
href,
children,
...props
}: { href: string; children?: ReactNode } & PressableProps) => {
}: { href: string; } & PressableProps) => {
const linkProps = useLink({href});
return (
<LinkCore href={href} Component={PressableFeedback} componentProps={props}>
<PressableFeedback {...linkProps} {...props}>
{children}
</LinkCore>
</PressableFeedback>
);
};

View File

@ -11894,9 +11894,9 @@ __metadata:
languageName: node
linkType: hard
"react-native-web@npm:0.0.0-c26cb9b08":
version: 0.0.0-c26cb9b08
resolution: "react-native-web@npm:0.0.0-c26cb9b08"
"react-native-web@npm:0.19.1":
version: 0.19.1
resolution: "react-native-web@npm:0.19.1"
dependencies:
"@babel/runtime": ^7.18.6
fbjs: ^3.0.4
@ -11907,7 +11907,7 @@ __metadata:
peerDependencies:
react: ^18.0.0
react-dom: ^18.0.0
checksum: d2c31e28b82434979e139c2cac84b9f2b227bd9520ea5b00464b2f161dc0a1ad36c5c40fc309d57794a641409c7d96b51f2e8f9daa861b5aa07cf5de5545c09c
checksum: 29d2eaa192cd07807e89b9be0aaa4d983dbae18fbe8ecf37e9aa27202cee7e78e53ee46f7cb40869099f7217744c36cd139cca3346df0b44300bd8637aa767c8
languageName: node
linkType: hard
@ -14249,7 +14249,7 @@ __metadata:
react-native-reanimated: ^3.0.2
react-native-svg: 13.8.0
react-native-video: ^6.0.0-alpha.5
react-native-web: 0.0.0-c26cb9b08
react-native-web: 0.19.1
solito: ^3.0.0
superjson: ^1.12.2
typescript: ^4.9.5