1.0.2 • Published 1 year ago

@mindinventory/react-native-skia-components v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@mindinventory/react-native-skia-components npm.io @mindinventory/React Native Skia Components Top Language @mindinventory/React Native Skia Components TypeScript @mindinventory/React Native Skia Components License IOS Android

This library provide UIKit like Card, NeoPop button and Floating button.

@mindinventory react-native-skia-components

Installation

using npm

npm install @mindinventory/react-native-skia-components

using yarn

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

import {
  Card,
  NeoPopButton,
  FloatingButton,
} from '@mindinventory/react-native-skia-components';

Card

<Card
  backgroundColor={'#000'}
  blur={10}
  borderColors={['cyan', 'magenta', 'yellow', 'cyan']}
  borderWidth={5}
  cardRadius={20}
  height={220}
  width={310}
  animation={'rotate'}
  animateBorder={'normal'}
  duration={1000}
>
{...}
</Card>
animation={'rotate'}
animateBorder={'normal'}

cardJeko

animation={'bounce'}
animateBorder={'normal'}

card

animation={'none'}
animateBorder={'normal'}

card3

animation={'rotate'}
animateBorder={'disco'}

thank

Neopop

<NeoPopButton
  backgroundColor={'#f96b8f'}
  bottomShadowColor={'#363636'}
  depth={10}
  height={80}
  sideShadowColor={'#363636'}
  isFloating={false}
  textStyle={{
    color: 'white',
    ...textStyle
  }}
  title={`Neo Pop Button`}
  width={80}
  onPress={()=>{}}
  shadowHeight={15}
  sideShadowColor={"rgba(250, 226, 46, 1)"}
  style={...style}
  titleSize={10}
  disabled={false}
/>

neoPop

Floating

<FloatingButton
    backgroundColor={'rgba(250, 226, 46,1)'}
    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}
/>

FlipView

<FlipView
  style={styles.cardContainer}
  flipDirection={'horizontal'}
  flipZoom={0.1}
  ref={flipRef}
  duration={1000}
  perspective={1000}
  frontView={
    <View style={{flex:1, backgroundColor:'red'}} />
  }
  backView={
    <View style={{flex: 1, backgroundColor: 'green'}}/>
  }
/>

flipview

Props to use

Card Props

ParameterTypeDescription
widthnumber (Optional)Set width of card layout.
heightnumber (Optional)Set height of card layout.
backgroundColorstring (Optional)Set background of card.
cardRadiusnumber (Optional)Set corner radius of card.
borderWidthnumber (Optional)Set border width of card.
borderColorsArray (Optional)Set border gradient color of card.
blurnumber (Optional)Set border blur radius of card.
animationstringSet animation of card in ('rotate', 'bounce', 'none').
animateBorderstringSet animation of card border in ('normal', 'disco', 'none', 'yoyo').
durationnumberSet duration of animating border of card.

NeoPopButton Props

ParameterTypeDescription
stylestyle (Optional)Give style of button.
titlestring (Optional)Title of button.
widthnumber (Optional)Set width of button.
heightnumber (Optional)Set height of button.
depthnumber (Optional)Set depth of button.
shadowHeightnumber (Optional)Add shadow height for button.
backgroundColorstring (Optional)Add background color to button.
bottomShadowColorstring (Optional)Add bottom shadow color of button.
sideShadowColorstring (Optional)Add right shadow color of button.
textStylestyle (Optional)Give TextStyle button title texts.
titleSizenumber (Optional)Set text size of title.
isFloatingboolean (Optional)set value true or false to get either Floating or NeoPop button.
floatAnimationboolean (Optional)set value true or false to get button float animation on or off.
durationnumber (Optional)set duration of the floatAnimation of the button.
disabledboolean (Optional)set button disabled or not.

FloatingButton Props

ParameterTypeDescription
stylestyle (Optional)Give style of button.
titlestring (Optional)Title of button.
widthnumber (Optional)Set width of button.
heightnumber (Optional)Set height of button.
depthnumber (Optional)Set depth of button.
shadowHeightnumber (Optional)Add shadow height for button.
backgroundColorstring (Optional)Add background color to button.
bottomShadowColorstring (Optional)Add bottom shadow color of button.
sideShadowColorstring (Optional)Add right shadow color of button.
textStylestyle (Optional)Give TextStyle button title texts.
titleSizenumber (Optional)Set text size of title.
isFloatingboolean (Optional)set value true or false to get Floating button.

FlipView Props

ParameterTypeDescription
stylestyle (Optional)Provide an style to inner elements of the FlipView.
frontViewJSX.ELement (Required)Element that render on Front side of the view.
backViewJSX.ELement (Required)Element that render on Back side of the view.
flipZoomnumber (Optional)Provide an flipZoom scale of the view when it animate.
flipDirectionstring (Optional)Provide an flipDirection of the view that in horizontal or vertical.
perspectivenumber (Optional)Provide an perspective value of the view for zIndex.
durationnumber (Optional)Duration of the flip card animation.
ref(FlipViewRef)React.ElementRefTo flip the view use flip() function. and get value of is view or not isFlip.

Contributing!

See the contributing guide 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

Check out our Work

Library used

License!

@mindinventory/react-native-skia-components MIT-licensed.

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