Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with React Native Reusables components #408

Open
cmd-scholar opened this issue Jan 5, 2025 · 0 comments
Open

Issue with React Native Reusables components #408

cmd-scholar opened this issue Jan 5, 2025 · 0 comments

Comments

@cmd-scholar
Copy link

Hasn't anyone tried to use this package with react-native-reusables, been having this weird issue and i don't even know how to describe it but i would try

~/lib/sheets.ts

`
import { registerSheet, SheetDefinition } from "react-native-actions-sheet";
import ImportWalletSheet from "~/components/wallet/ImportWalletSheet";

registerSheet("import-wallet-sheet", ImportWalletSheet, "global");

declare module "react-native-actions-sheet" {
interface Sheets {
"import-wallet-sheet": SheetDefinition;
}
}
export {};
`

// home/index.tsx
import {Button} from "
/components/ui/buton" // from react-native-reusables
import {Link} from "expo-router
export default function Screen() {
return (

<Button onPress={() => {
// So this opens well
SheetManager.show("import-wallet-sheet")
}}>Open Sheet
Navigate

)
}

// navigate.tsx
import {Progress} from "~/components/ui/progress" // from react-native-reusables
export default function Screen() {
return (

<Progress ..props />

)
}

So for some reason, if i navigate back and try to open the sheet, it tries to come from the top and messes up the styles, so confused rn

IS THERE ANYONE THAT HAS USED THIS TWO TOGETHER AND HAVE EXPERINCED THIS B4??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant