Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mindinventory/react-native-skia-components
This library provide UIKit like Card, NeoPop button and and Floating button.
https://github.com/mindinventory/react-native-skia-components
animations canvas card card-animation custom-components graphics mindinventory neo-pop-button neopop react-native react-native-skia skia uikit-components
Last synced: 2 months ago
JSON representation
This library provide UIKit like Card, NeoPop button and and Floating button.
- Host: GitHub
- URL: https://github.com/mindinventory/react-native-skia-components
- Owner: Mindinventory
- License: mit
- Created: 2022-11-09T08:43:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T11:46:35.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T04:44:13.591Z (3 months ago)
- Topics: animations, canvas, card, card-animation, custom-components, graphics, mindinventory, neo-pop-button, neopop, react-native, react-native-skia, skia, uikit-components
- Language: TypeScript
- Homepage: https://www.mindinventory.com/react-native-app-development.php
- Size: 44.3 MB
- Stars: 52
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# @mindinventory/react-native-skia-components [![](https://img.shields.io/npm/v/@mindinventory/react-native-skia-components.svg)](https://www.npmjs.com/package/@mindinventory/react-native-skia-components) ![@mindinventory/React Native Skia Components Top Language](https://img.shields.io/github/languages/top/Mindinventory/react-native-skia-components) ![@mindinventory/React Native Skia Components TypeScript](https://badgen.net/npm/types/tslib) ![@mindinventory/React Native Skia Components License](https://img.shields.io/github/license/mindinventory/react-native-skia-components) ![IOS](https://img.shields.io/badge/IOS-9cf) ![Android](https://img.shields.io/badge/Android-green)
This library provide UIKit like Card, NeoPop button and Floating button.
## Installation
using npm
```sh
npm install @mindinventory/react-native-skia-components
```using yarn
```sh
yarn add @mindinventory/react-native-skia-components
```### Included Components
- AnimatedCard ('yoyo' | 'disco' | 'rotate' | 'bounce')
- NeoPopButton
- FloatingButton
- FlipView### Upcoming Components
- Fancy Scroll Indicator
- Amazing Line & Bar Chart
- Circular Progress Bar
- Star-War Buttons### Supported platform
- Android
- iOS## Usage
```js
import {
Card,
NeoPopButton,
FloatingButton,
} from '@mindinventory/react-native-skia-components';
```# Card
```js
{...}
```
```js
animation={'rotate'}
animateBorder={'normal'}
```
![cardJeko](https://user-images.githubusercontent.com/104554054/205283144-d7020c40-8e49-433f-9f39-fa5a984bb29e.gif)
```js
animation={'bounce'}
animateBorder={'normal'}
```
![card](https://user-images.githubusercontent.com/104554054/205283171-993ec474-ad73-4b6c-8449-cf1ec031c4c2.gif)
```js
animation={'none'}
animateBorder={'normal'}
```
![card3](https://user-images.githubusercontent.com/104554054/205283190-18b3db6e-dfd1-45a7-b988-bee258fe7f1d.gif)
```js
animation={'rotate'}
animateBorder={'disco'}
```
![thank](https://user-images.githubusercontent.com/104554054/205297001-87106883-a507-4208-b5ae-f1162922f525.gif)# Neopop
```js
{}}
shadowHeight={15}
sideShadowColor={"rgba(250, 226, 46, 1)"}
style={...style}
titleSize={10}
disabled={false}
/>
```
![neoPop](https://user-images.githubusercontent.com/104554054/205282417-e10ca1da-cfe6-46b7-ae2b-0fb7843951fe.gif)# Floating
```js
```
# FlipView
```js
}
backView={
}
/>
```
![flipview](https://user-images.githubusercontent.com/104554054/208624029-6363f5c8-6bd8-41e5-a3ab-095bf7be4bc5.gif)# Props to use
# Card Props
| Parameter | Type | Description |
| --------------- | -------------------------- | ---------------------------------- |
| width | _number (Optional)_ | Set width of card layout. |
| height | _number (Optional)_ | Set height of card layout. |
| backgroundColor | _string (Optional)_ | Set background of card. |
| cardRadius | _number (Optional)_ | Set corner radius of card. |
| borderWidth | _number (Optional)_ | Set border width of card. |
| borderColors | _Array (Optional)_ | Set border gradient color of card. |
| blur | _number (Optional)_ | Set border blur radius of card. |
| animation | string | Set animation of card in ('rotate', 'bounce', 'none'). |
| animateBorder | string | Set animation of card border in ('normal', 'disco', 'none', 'yoyo'). |
| duration | number | Set duration of animating border of card. |# NeoPopButton Props
| Parameter | Type | Description |
| ----------------- | -------------------- | -------------------------------------------------------------------- |
| style | _style (Optional)_ | Give style of button. |
| title | _string (Optional)_ | Title of button. |
| width | _number (Optional)_ | Set width of button. |
| height | _number (Optional)_ | Set height of button. |
| depth | _number (Optional)_ | Set depth of button. |
| shadowHeight | _number (Optional)_ | Add shadow height for button. |
| backgroundColor | _string (Optional)_ | Add background color to button. |
| bottomShadowColor | _string (Optional)_ | Add bottom shadow color of button. |
| sideShadowColor | _string (Optional)_ | Add right shadow color of button. |
| textStyle | _style (Optional)_ | Give TextStyle button title texts. |
| titleSize | _number (Optional)_ | Set text size of title. |
| isFloating | _boolean (Optional)_ | set value `true` or `false` to get either Floating or NeoPop button. |
| floatAnimation | _boolean (Optional)_ | set value `true` or `false` to get button float animation on or off. |
| duration | _number (Optional)_ | set duration of the floatAnimation of the button. |
| disabled | _boolean (Optional)_ | set button disabled or not. |# FloatingButton Props
| Parameter | Type | Description |
| ----------------- | -------------------- | -------------------------------------------------------------------- |
| style | _style (Optional)_ | Give style of button. |
| title | _string (Optional)_ | Title of button. |
| width | _number (Optional)_ | Set width of button. |
| height | _number (Optional)_ | Set height of button. |
| depth | _number (Optional)_ | Set depth of button. |
| shadowHeight | _number (Optional)_ | Add shadow height for button. |
| backgroundColor | _string (Optional)_ | Add background color to button. |
| bottomShadowColor | _string (Optional)_ | Add bottom shadow color of button. |
| sideShadowColor | _string (Optional)_ | Add right shadow color of button. |
| textStyle | _style (Optional)_ | Give TextStyle button title texts. |
| titleSize | _number (Optional)_ | Set text size of title. |
| isFloating | _boolean (Optional)_ | set value `true` or `false` to get Floating button. |# FlipView Props
| Parameter | Type | Description |
| ----------------- | -------------------- | -------------------------------------------------------------------- |
| style | _style (Optional)_ | Provide an style to inner elements of the `FlipView`. |
| frontView | _JSX.ELement (Required)_ | Element that render on `Front` side of the view. |
| backView | _JSX.ELement (Required)_ | Element that render on `Back` side of the view. |
| flipZoom | _number (Optional)_ | Provide an flipZoom scale of the view when it animate. |
| flipDirection | _string (Optional)_ | Provide an flipDirection of the view that in horizontal or vertical. |
| perspective | _number (Optional)_ | Provide an perspective value of the view for zIndex. |
| duration | _number (Optional)_ | Duration of the flip card animation. |
| ref(FlipViewRef) | _React.ElementRef_ | To flip the view use flip() function. and get value of is view or not isFlip. |## Contributing!
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.## 📱 Check out other lists of our Mobile UI libraries
## 💻 Check out other lists of Web libraries
📝 Get FREE Industry WhitePapers →
### Library used
* [React-Native-Skia](https://github.com/Shopify/react-native-skia)
* [React-Native-Reanimated](https://github.com/software-mansion/react-native-reanimated)## License!
@mindinventory/react-native-skia-components [MIT-licensed](./LICENSE).
# Let us know!
If you use our open-source libraries in your project, please make sure to credit us and Give a star to www.mindinventory.com
Please feel free to use this component and Let us know if you are interested to building Apps or Designing Products.