0.4.5 • Published 9 years ago

react-native-navigationbar v0.4.5

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

react-native-navigationbar

一个为 iOS/Android 提供Navigationbar的库

Install

npm install react-native-navigationbar --save

Usage

import React, { Component } from 'react'
import { View } from 'react-native';
import NavigationBar from 'react-native-navigationbar'

class Example extends Component {
  render() {
    return (
      <View style={styles.container}>
        <NavigationBar
          backName='back'
          title='爱普云'
          ...
        />
      </View>
    );
  }
}

Props:

NameDescriptionDefaultType
titletitle of bartitlestring
titleColorcolor of title#333string
backFunccalled when back-part is pressedfunc
actionArraybuttons located in left-part of bar array
barTintColorbackgroundColor of barwhitestring
renderActionreturn right-part view of bar64func
actionNameright-part's namenullstring
actionFunccalled when right-part is pressedfalsefunc
actionTextColorcolor of actionName#666string
backIconHiddenwhether show backIconfalsebool
statusbarPaddingwhether render height of statusbarbool
backColorcolor of back-part#777string
backNametext of back-partstring
barOpacityopacity of bar1number
barStyleyou can add external for barView.propTypes.style

License

MIT

0.4.5

9 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.5

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.1

10 years ago