1.0.15 • Published 4 years ago

react-native-bottom-native-navigation v1.0.15

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

react-native-bottom-native-navigation

npm version Lean Core Extracted License

Blazing fast pure native implementation of Bottom Navigation.

Under the hood this library is using the native Android ViewPager and BottomNavigationViewEx to implement the Bottom Navigation.

Support for iOS will be implemented soon, Please expect major changes in the future. The ReasonML bindings for this library will landed after iOS implementation is shipped.

Versions

1.x
Android support

Getting started

yarn add react-native-bottom-native-navigation

Linking

>= 0.60

Autolinking will just do the job.

< 0.60

Mostly automatic

react-native link react-native-bottom-native-navigation

Additional config for Android

Make the following changes:

android/build.gradle

repositories {
  ...
  maven { url "https://jitpack.io" }
  maven { url "https://maven.google.com" }
}

Usage

import React from 'react';
import {StyleSheet, Text} from 'react-native';
import BottomNativeTab, {
  BottomItem,
} from 'react-native-bottom-native-navigation';

const App = () => {
  return (
    <BottomNativeTab style={styles.bottomNavigation}>
      <BottomItem
        title="Satu"
        imageUrl="https://example/icon.png"
        key="1">
        <Text>First page</Text>
      </BottomItem>
      <BottomItem
        title="Dua"
        imageUrl="https://example/icon2.png"
        key="1">
        <Text>First page</Text>
      </BottomItem>
    </BottomNativeTab>
  );
};

const styles = StyleSheet.create({
  bottomNavigation: {
    flex: 1,
  },
});

API

PropDescriptionPlatform
backgroundColor: stringSet the background Color of the Bottom Navigationboth
enableAnimation: booleanEnable the Bottom Naviagtion animationAndroid
enableShiftingMode: booleanSet the Bottom Navigation shifting modeAndroid
enableItemShiftingMode: booleanSet the Bottom Navigation item shifting modeAndroid
textColor: {default: string, selected: string}Set the Bottom Navigation item text colorBoth
1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago