Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 562 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 562 Bytes

react-native-view-with-title

Component for iOS-like headers in React Native. Compatible also with Android.

Installation

$ yarn add tomhirsch/react-native-view-with-title

Usage

import ViewWithTitle from 'react-native-view-with-title'

...
render() {
  <ViewWithTitle
    title="Screen title"
    renderLeft={() => (
      <YourComponentForBackButton
        onPress={() => this.props.navigation.goBack()}
      />
    )}
  >
    ...
  </ViewWithTitle>
}