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

ScrollView crashes app #352

Open
Saliheen opened this issue Apr 4, 2024 · 3 comments
Open

ScrollView crashes app #352

Saliheen opened this issue Apr 4, 2024 · 3 comments

Comments

@Saliheen
Copy link

Saliheen commented Apr 4, 2024

import ActionSheet, {ScrollView} from 'react-native-actions-sheet';

importing ScrollView from 'react-native-actions-sheet' crashes app.

@jonxssc
Copy link
Contributor

jonxssc commented Apr 4, 2024

What is the error?

@AyoCodess
Copy link

AyoCodess commented Apr 10, 2024

What is the error?

ERROR Invariant Violation: ScrollView child layout (["justifyContent"]) must be applied through the contentContainerStyle prop.

Solution: remove all props from scrollview, in my case, i had the className prop on my scrollview as i use tailwind.

@Saliheen
Copy link
Author

Saliheen commented May 9, 2024

Now ScrollView works but opening keyboard closes modal

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

3 participants