import React, {Component} from 'react'; import {StyleSheet, Text, View, ScrollView} from 'react-native'; import {Navigation} from 'react-native-navigation'; import Color from '../style/color'; import {Icon} from '../style/icon'; import NotebookDiaryList from '../component/notebook/notebookDiaryList'; export default class NotebookDetailPage extends Component { constructor(props) { super(props); Navigation.events().bindComponent(this); } static options(passProps) { return { topBar: { title: { text: '《' + passProps.notebook.subject + '》' }, rightButtons: [{ id: 'navButtonNotebookSetting', icon: Icon.navButtonNotebookSetting, color: Color.primary }] } }; } navigationButtonPressed({buttonId}) { Navigation.push(this.props.componentId, { component: { name: 'NotebookEdit', passProps: { notebook: this.props.notebook } } }); } render() { return ( ); } } const localStyle = StyleSheet.create({ });