0.4.5 • Published 8 years ago

react-native-navigationbar v0.4.5

Weekly downloads
5
License
MIT
Repository
github
Last release
8 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

8 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.5

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago