lynx-touchable-button
v1.0.2
Published
A TouchableOpacity-like button for Lynx
Downloads
13
Maintainers
Readme
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>
);
}