Closed butri71 closed 1 year ago
Hi,
I'm trying to overrides some default value set by imageContainer by using imageContainerStyles as per your explanation.
subTitleStyles is working but imageContainerStyles has no effect whatsoever, no matter what I define inside.
subTitleStyles
imageContainerStyles
pages={[ { backgroundColor: '#a6e4d0', image: <Image source={require('../assets/images/onboarding/screen1.png')} />, title: t('onboardingTitle1'), subtitle: t('onboardingText1'), subTitleStyles: { marginBottom: 20 }, imageContainerStyles: { borderWidth:1, paddingBottom: 20 } }, Thanks
pages={[ { backgroundColor: '#a6e4d0', image: <Image source={require('../assets/images/onboarding/screen1.png')} />, title: t('onboardingTitle1'), subtitle: t('onboardingText1'), subTitleStyles: { marginBottom: 20 }, imageContainerStyles: { borderWidth:1, paddingBottom: 20 } },
Hey, you need to set imageContainerStyles like this on the component itself:
<Onboarding pages=xx imageContainerStyles=xx />
Hi,
I'm trying to overrides some default value set by imageContainer by using imageContainerStyles as per your explanation.
subTitleStyles
is working butimageContainerStyles
has no effect whatsoever, no matter what I define inside.pages={[ { backgroundColor: '#a6e4d0', image: <Image source={require('../assets/images/onboarding/screen1.png')} />, title: t('onboardingTitle1'), subtitle: t('onboardingText1'), subTitleStyles: { marginBottom: 20 }, imageContainerStyles: { borderWidth:1, paddingBottom: 20 } },
Thanks