We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@gorhom : I am using the following boilerplate
This code I am using inside a containers, this is an example of container:
import React, { useState, useEffect, useMemo } from 'react' import { useDispatch, useSelector } from 'react-redux' import { View, StyleSheet } from 'react-native' import { Text, Button } from 'react-native-paper' import { Common, Fonts, Gutters, Layout } from '@/Theme' import { useTranslation } from 'react-i18next' import Settings from '@/Store/Settings/Init' import PaperOnboarding from "@gorhom/paper-onboarding"; import { useSafeArea } from 'react-native-safe-area-context'; const data = [ { title: 'Hotels', description: 'All hotels and hostels are sorted by hospitality rating', backgroundColor: '#698FB8', }, { title: 'Banks', description: 'We carefully verify all banks before add them into the app', backgroundColor: '#6CB2B8', }, { title: 'Stores', description: 'All local stores are categorized for your convenience', backgroundColor: '#9D8FBF', }, ]; const IndexInstallationContainer = (props) => { const { t } = useTranslation() const dispatch = useDispatch() const settings = useSelector((state) => state.settings) const changeTheme = () => { dispatch(Settings.action({ colorScheme: settings.item.colorScheme === 'dark' ? 'ligth' : 'dark' })) } const handleOnClosePress = () => props.navigation.navigate("Login"); const safeInsets = useSafeArea(); // variable const insets = useMemo( () => ({ top: Math.max(safeInsets.top, 20), bottom: Math.max(safeInsets.bottom, 20), left: Math.max(safeInsets.left, 20), right: Math.max(safeInsets.right, 20), }), [safeInsets] ); return ( <PaperOnboarding data={data} safeInsets={{ top: insets.top, bottom: insets.bottom, left: insets.left, right: insets.right, }} onCloseButtonPress={handleOnClosePress} /> ) } export default IndexInstallationContainer
The text was updated successfully, but these errors were encountered:
@Angelk90 did you resolve this?
Sorry, something went wrong.
@Angelk90 Im also experiencing this issue
No branches or pull requests
Bug
Environment info
Reproducible sample code
@gorhom : I am using the following boilerplate
This code I am using inside a containers, this is an example of container:
The text was updated successfully, but these errors were encountered: