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

[Native] Received false for a non-boolean attribute collapsable. #323

Open
ThomasCedrini opened this issue Oct 4, 2024 · 0 comments
Open

Comments

@ThomasCedrini
Copy link

What did you do?

Try to create a Placeholder component in React Native like that :

import ContentLoader from "react-content-loader/native";

export function Placeholder() {
  return <ContentLoader />;
}

What did you expect to happen?

The component did render properly but I got this error in the console :

Warning: Received `false` for a non-boolean attribute `collapsable`.

If you want to write it to the DOM, pass a string instead: collapsable="false" or collapsable={value.toString()}.

If you used to conditionally omit it with collapsable={condition && value}, pass collapsable={condition ? value : undefined} instead.
    at linearGradient
    at LinearGradient (http://localhost:8081/node_modules/expo-router/entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:196264:3)
    at http://localhost:8081/node_modules/expo-router/entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:44651:62
    at defs
    at Defs (http://localhost:8081/node_modules/expo-router/entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:196125:3)
    at svg
    at Svg (http://localhost:8081/node_modules/expo-router/entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:196304:3)
    at NativeSvg (http://localhost:8081/node_modules/expo-router/entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:195004:45)
    at ContentLoader (http://localhost:8081/node_modules/expo-router/entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:195112:18)
    at ReactContentLoaderFacebook

Which versions of react-content-loader, and which browser are affected by this issue?

  • react: 18.2.0
  • react-native: 0.74.5
  • react-content-loader: 7.0.2
  • react-native-svg: 15.7.1
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

1 participant