This library provide UIKit like Card, NeoPop button, Floating button and Flipview using React Native SKIA.
npm install @mindinventory/react-native-skia-componentsThis library provide UIKit like Card, NeoPop button and Floating button.
!@mindinventory react-native-skia-components
using npm
``sh`
npm install @mindinventory/react-native-skia-components
using yarn
`sh`
yarn add @mindinventory/react-native-skia-components
- AnimatedCard ('yoyo' | 'disco' | 'rotate' | 'bounce')
- NeoPopButton
- FloatingButton
- FlipView
- Fancy Scroll Indicator
- Amazing Line & Bar Chart
- Circular Progress Bar
- Star-War Buttons
- Android
- iOS
`js`
import {
Card,
NeoPopButton,
FloatingButton,
} from '@mindinventory/react-native-skia-components';
`js`
blur={10}
borderColors={['cyan', 'magenta', 'yellow', 'cyan']}
borderWidth={5}
cardRadius={20}
height={220}
width={310}
animation={'rotate'}
animateBorder={'normal'}
duration={1000}
>
{...}`js`
animation={'rotate'}
animateBorder={'normal'}`
!cardJekojs`
animation={'bounce'}
animateBorder={'normal'}`
!cardjs`
animation={'none'}
animateBorder={'normal'}`
!card3js`
animation={'rotate'}
animateBorder={'disco'}
!thank
`jsNeo Pop Button
bottomShadowColor={'#363636'}
depth={10}
height={80}
sideShadowColor={'#363636'}
isFloating={false}
textStyle={{
color: 'white',
...textStyle
}}
title={}`
width={80}
onPress={()=>{}}
shadowHeight={15}
sideShadowColor={"rgba(250, 226, 46, 1)"}
style={...style}
titleSize={10}
disabled={false}
/>
!neoPop
`js`
bottomShadowColor={'rgba(0, 0, 0,1)'}
depth={25}
height={200}
isFloating={true}
shadowHeight={20}
sideShadowColor={'rgba(195, 161, 60,1)'}
textStyle={{
fontSize: 24,
}}
title={'Press Me'}
width={300}
/>
`js`
flipDirection={'horizontal'}
flipZoom={0.1}
ref={flipRef}
duration={1000}
perspective={1000}
frontView={
}
backView={
}
/>
!flipview
| 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
| 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. |
| 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. |true
| floatAnimation | _boolean (Optional)_ | set value 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. |
| 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. |
| Parameter | Type | Description |
| ----------------- | -------------------- | -------------------------------------------------------------------- |
| style | _style (Optional)_ | Provide an style to inner elements of the FlipView. |Front
| frontView | _JSX.ELement (Required)_ | Element that render on side of the view. |Back` side of the view. |
| backView | _JSX.ELement (Required)_ | Element that render on
| 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. |
* React-Native-Skia
* React-Native-Reanimated
@mindinventory/react-native-skia-components MIT-licensed.
If you use our open-source libraries in your project, please make sure to credit us and Give a star to www.mindinventory.com