1.0.1 • Published 2 years ago
@dumpster-fire-code/react-native-pressable-selectable-text v1.0.1
React Native Pressable + Selectable Text
A selectable and pressable text component for React Native.
:package: Installation
Using Yarn
yarn add @dumpster-fire-code/react-native-pressable-selectable-text
Using NPM
npm install --save @dumpster-fire-code/react-native-pressable-selectable-text
:rocket: Usage
import { SelectableText } from '@dumpster-fire-code/react-native-pressable-selectable-text';
function MyComponent {
return (
<SelectableText onPress={() => alert('pressed')}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</SelectableText>
);
}
:hammer: Development
Installing dependencies
After installing Node and Yarn, run yarn install
from the project root to install package dependencies.
Starting example app
To start the example Expo app:
cd example
yarn start
Syncing the package
To have Watchman) watch for changes to the package, then synchronize the example app using Yalc, run yarn watch
from the project root.
1.0.1
2 years ago