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

error while updating property 'paddingbottom' in shadow node of type: RCTScrollView #37175

Closed
ManjodhSaran opened this issue Apr 29, 2023 · 3 comments
Labels
Component: ScrollView Needs: Triage 🔍 Newer Patch Available Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@ManjodhSaran
Copy link

Description

i am not using paddingBottom term in my entire project

java.lang.Boolean cannot be cast to java.lang.Double

React Native Version

0.71.6

Output of npx react-native info

System:
OS: macOS 13.3.1
CPU: (8) arm64 Apple M1
Memory: 113.47 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.12.1 - /usr/local/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.19.3 - /opt/homebrew/bin/npm
Watchman: 2023.02.13.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.18 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.6 => 0.71.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

12D46CCC-63F9-4274-99F9-710047B20BB9 (1)

Snack, code example, screenshot, or link to a repository

import React from 'react'
import { colors } from '../theme'
import { useKeyboard } from '../hooks'
import { Loader } from '../components'
import StackHeader from './StackHeader'
import { SCREEN_HEIGHT } from '../helpers'
import { RefreshControl } from 'react-native'
import { Box, ScrollView, VStack } from 'native-base'

export const StackScreenWrapper = ({
children, p = 0, space = 0, pt = 2, h = SCREEN_HEIGHT, _h,
subscriber, subscriberProps, refreshing = false, safeArea = true,
onRefresh, header, loading, scrollView = true,
addTopBox = false, addTopBoxH = 400, addTopBoxBg = colors.primary,
bg = colors.background, ...props }) => {

const { isKeyboardVisible } = useKeyboard();

return (
    <VStack flex={1} bg={bg} {...props} h={h}
        pb={Platform.OS === 'ios' && isKeyboardVisible ? 250 : 0}
    >
        {addTopBox ? <Box
            position={'absolute'}
            bg={addTopBoxBg}
            zIndex={-1}
            top={0} w={'100%'} h={addTopBoxH} /> : <></>}
        {header?.show ?
            <StackHeader header={header} />
            : <></>}
        {scrollView
            ?
            <ScrollView
                pt={pt}
                nestedScrollEnabled
                keyboardShouldPersistTaps='handled'
                p={p}
                showsVerticalScrollIndicator={false}
                refreshControl={
                    onRefresh ? <RefreshControl
                        refreshing={refreshing}
                        onRefresh={onRefresh}
                    /> : <></>}
            >
                <VStack space={space}>
                    {loading ?
                        <Box h={SCREEN_HEIGHT - 200}>
                            <Loader />
                        </Box>
                        :
                        subscriber === false ?
                            <>
                                {/* <SubscriberRequiredCard {...subscriberProps} /> */}
                            </>
                            :
                            children
                    }
                </VStack>
                <Box h='100' />
            </ScrollView>
            :
            <VStack p={p ? 4 : 0} space={space} pt={pt}>
                {loading ?
                    <Box h={SCREEN_HEIGHT - 200}>
                        <Loader />
                    </Box>
                    :
                    subscriber === false ?
                        <SubscriberRequiredCard {...subscriberProps} />
                        :
                        children
                }
            </VStack>
        }
    </VStack>
)

}

@github-actions
Copy link

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@github-actions
Copy link

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 27, 2023
Copy link

github-actions bot commented Nov 3, 2023

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as completed Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: ScrollView Needs: Triage 🔍 Newer Patch Available Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

1 participant