chr314 / react-native-neumorphism Goto Github PK
View Code? Open in Web Editor NEWNeumorphism shadows for Android, iOS and Web
License: MIT License
Neumorphism shadows for Android, iOS and Web
License: MIT License
I tried this in my app. It worked perfectly in Android but didn't work in iOS. I made some modification and ran the Pressed state effect but couldn't work out the FLAT state, which I tried.
I just try to use the package with expo managed app but it throws err as follow.
Invariant Violation: requireNativeComponent:"NeumorphismCardView" was not found in the UIManager.
Hello,
I noticed that the type information for the react component is not correct.
It is now a function that returns the react component.
Current version:
declare const Neumorphism: () => ((props: {
lightColor?: string | undefined;
darkColor?: string | undefined;
radius?: number | undefined;
shapeType?: "flat" | "pressed" | "basin" | undefined;
style?: import("react-native").ViewStyle | undefined;
disabled?: boolean | undefined;
children?: import("react").ReactNode;
}) => JSX.Element) | typeof View;
What I think it should be:
declare const Neumorphism: (props: {
lightColor?: string | undefined;
darkColor?: string | undefined;
radius?: number | undefined;
shapeType?: "flat" | "pressed" | "basin" | undefined;
style?: import("react-native").ViewStyle | undefined;
disabled?: boolean | undefined;
children?: import("react").ReactNode;
}) => JSX.Element;
Thanks for creating this package!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.