1.0.2 ⢠Published 4 months ago
lynx-touchable-button v1.0.2
Lynx Touchable Button š
A custom button component for Lynx, designed to mimic the TouchableOpacity
effect in React Native.
š Features
ā
Smooth opacity transition on tap
ā
Customizable styles
ā
Supports bindtap
event
ā
Lightweight and easy to use
š¦ Installation
Install via NPM:
npm install lynx-touchable-button
#Usage
```jsx
import './App.css';
import TouchableButton from 'lynx-touchable-button';
export function App() {
return (
<view
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
height: '100%',
}}
>
<TouchableButton style={{ display: 'flex', justifyContent: 'center' }}>
<text>hello Button</text>
</TouchableButton>
</view>
);
}