Closed qntnrbns closed 8 years ago
After dealing with a similar issue in another package, I have found that rnpm
, or at the version that I am using (1.9.0), does not properly deal with linking. It tries to add the package to MainActivity.java
, and in the latest versions of react-native the getPackages
functions is in MainApplication.java
.
EDIT: This has not yet been fixed on the most recent react-native documentation http://facebook.github.io/react-native/releases/0.30/docs/native-modules-android.html
Progress! I managed to compile and run the test above. Unfortunately the app crashes as soon as I touch another tab.
react-native 0.36.1 testing on android 6.0.1 hardware device
Introduction
When I attempt to render the TabLayout, it renders as shown in the image below. I am relatively new with react/react-native, so if this is a simple issue with styling(, etc), please let me know.
Versions/Dependencies
react-native-android-tablayout@0.3.0 react-native@0.29.2 react@15.2.0
Steps to reproduce
react-native init test
npm install --save react-native-android-tablayout
rnpm link
index.android.js
with code belowreact-native run-android