1.1.0 • Published 10 months ago

rn-switch-button v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago
  • RN-Switch-Button is A dynamic Switch / toggle button that response to the touch with react native animation.

  • It comes with a built-in TypeScript typings and is compatible with all popular JavaScript frameworks. You can use it directly or leverage well-maintained wrapper packages that allow for a more native integration with your frameworks of choice.

Installation:

npm i rn-switch-button
yarn add rn-switch-button

Usage:

const HomeScreen = ({navigation, ...props}) => {

return (
<View contentContainerStyle={Styles.container}>


<ButtonSwitch
   deafultSelectedIndex={0}
   leftText="one"
   rightText="two"  />

</View>
);
};

export default HomeScreen;

Example:

Dataset Properties

NameType
leftTextstring
rightTextstring
onClickLeft() => void
onClickRight() => void
outerViewStyleViewStyle
innerViewStyleViewStyle
buttonsStyleViewStyle
activeButtonStyleViewStyle
activeColorstring
unActiveTextColorstring
unActiveBackColorstring
horizontalOffsetnumber
textSelectedStyleTextStyle
textUnSelectedStyleTextStyle
deafultSelectedIndexnumber
1.1.0

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago