Skip to content

tomhirsch/react-native-view-with-title

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%