1.0.1 • Published 2 years ago

@dumpster-fire-code/react-native-pressable-selectable-text v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Native Pressable + Selectable Text

A selectable and pressable text component for React Native.

https://user-images.githubusercontent.com/103694056/164523570-5cbf94e6-78d8-4958-ac73-9bd02a32b9d5.mov

: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.