react-native-text-view
v1.0.2
Published
## Getting started
Downloads
5
Maintainers
Readme
react-native-text-view
Getting started
$ npm install react-native-text-view --save
RN < 0.60
Mostly automatic installation
$ react-native link react-native-text-view
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNTextViewPackage;
to the imports at the top of the file - Add
new RNTextViewPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-text-view' project(':react-native-text-view').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-text-view/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-text-view')
Usage
import TextView from 'react-native-text-view';
TextView;