A component to wrap around other components for tap action
npm install native-x-tappable
Wrap this component around another component to enable user interaction
``sh`
yarn add native-x-tappable
`sh`
npm install native-x-tappable
`tsx
import { Tappable } from 'native-x-tappable'
function MyComponent() {
const onTap = () => {
// handle action
}
return
{...}
}
// or with data
function MyComponent({ user }: { user: User}) {
const onTapUser = (user: User) => {
// handle action
}
return
{...}
}
``
| Property | Default Value | Usage |
| ---------------------------- | ------------- | ------------------------------------------------------ |
| disable?: boolean | false | Prevents all user interaction while this value is true |
| feedback?: boolean | false | Show a visible feedback |
| style: ViewStyle | | Additional style |
| children: ReactNode/[] | | Content |
| onTap: (data: TData) => void | | Action handler for user interaction |
| data: TData | undefined | Optional data |
Here is an example of the release type that will be done based on a commit messages:
| Commit message | Release type |
| ------------------- | --------------------- |
| fix: [comment] | Patch Release |
| feat: [comment] | Minor Feature Release |
| perf: [comment] | Major Feature Release |
| doc: [comment] | No Release |
| refactor: [comment] | No Release |
| chore: [comment] | No Release |