Skip to content

Instantly share code, notes, and snippets.

@seclace
Last active July 31, 2018 18:56
Show Gist options
  • Save seclace/c95a87a899524773f93a700e93846ccd to your computer and use it in GitHub Desktop.
Save seclace/c95a87a899524773f93a700e93846ccd to your computer and use it in GitHub Desktop.
import React from 'react'
class TestScreen extends React.Component {
static navigationOptions = ({ navigation }) => {
const title = navigation.getParam('title', 'Default Screen Title')
return {
title,
}
}
render () {
return null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment