react-native-tab-layout
v1.0.0
Published
TODO
Downloads
2
Readme
react-native-tab-layout
Getting started
$ npm install react-native-tab-layout --save
Mostly automatic installation
$ react-native link react-native-tab-layout
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.busfor.rntablayout.TabLayoutPackage;
to the imports at the top of the file - Add
new TabLayoutPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-tab-layout' project(':react-native-tab-layout').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-tab-layout/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-tab-layout')
Usage
import TabLayout from 'react-native-tab-layout';
// TODO: What to do with the module?
TabLayout;