@dumpster-fire-code/react-native-pressable-selectable-text
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

📦 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

🚀 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>
  );
}

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

Package Sidebar

Install

npm i @dumpster-fire-code/react-native-pressable-selectable-text

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

5.31 kB

Total Files

6

Last publish

Collaborators

  • dumpster-fire-code