|
@@ -21,16 +21,17 @@ const PageContainer: FC<IPageContainerProps> = ({
|
|
|
...props
|
|
...props
|
|
|
}) => {
|
|
}) => {
|
|
|
const {
|
|
const {
|
|
|
|
|
+ colors,
|
|
|
spaces
|
|
spaces
|
|
|
} = NCoreUIKitTheme.useContext();
|
|
} = NCoreUIKitTheme.useContext();
|
|
|
|
|
|
|
|
const renderScrollview = () => {
|
|
const renderScrollview = () => {
|
|
|
if(style) {
|
|
if(style) {
|
|
|
- console.log("Hey!. You make wrong things. If you must be use isScrollable={true}, you must be use scrollViewStyle. Do not use style prop for this case.");
|
|
|
|
|
|
|
+ console.error("Hey!. You make wrong things. If you must be use isScrollable={true}, you must be use scrollViewStyle. Do not use style prop for this case.");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if(props) {
|
|
if(props) {
|
|
|
- console.log("Hey!. You make wrong things. If you must be use isScrollable={true}, you must be use scrollViewProps. Do not use default view props for this case.");
|
|
|
|
|
|
|
+ console.error("Hey!. You make wrong things. If you must be use isScrollable={true}, you must be use scrollViewProps. Do not use default view props for this case.");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return <ScrollView
|
|
return <ScrollView
|
|
@@ -43,7 +44,7 @@ const PageContainer: FC<IPageContainerProps> = ({
|
|
|
]}
|
|
]}
|
|
|
style={[
|
|
style={[
|
|
|
{
|
|
{
|
|
|
- backgroundColor: backgroundColor
|
|
|
|
|
|
|
+ backgroundColor: colors.content.container[backgroundColor]
|
|
|
},
|
|
},
|
|
|
stylesheet.container,
|
|
stylesheet.container,
|
|
|
scrollViewStyle
|
|
scrollViewStyle
|
|
@@ -55,18 +56,18 @@ const PageContainer: FC<IPageContainerProps> = ({
|
|
|
|
|
|
|
|
const renderView = () => {
|
|
const renderView = () => {
|
|
|
if(scrollViewStyle) {
|
|
if(scrollViewStyle) {
|
|
|
- console.log("Hey!. You make wrong things. If you must be use isScrollable={false}, you must be use style. Do not use scrollViewStyle prop for this case.");
|
|
|
|
|
|
|
+ console.error("Hey!. You make wrong things. If you must be use isScrollable={false}, you must be use style. Do not use scrollViewStyle prop for this case.");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if(scrollViewProps) {
|
|
if(scrollViewProps) {
|
|
|
- console.log("Hey!. You make wrong things. If you must be use isScrollable={false}, you musn't use scrollViewProps.");
|
|
|
|
|
|
|
+ console.error("Hey!. You make wrong things. If you must be use isScrollable={false}, you musn't use scrollViewProps.");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return <View
|
|
return <View
|
|
|
{...props}
|
|
{...props}
|
|
|
style={[
|
|
style={[
|
|
|
{
|
|
{
|
|
|
- backgroundColor: backgroundColor,
|
|
|
|
|
|
|
+ backgroundColor: colors.content.container[backgroundColor],
|
|
|
padding: spaces.spacingMd
|
|
padding: spaces.spacingMd
|
|
|
},
|
|
},
|
|
|
stylesheet.container,
|
|
stylesheet.container,
|