@@ -88,18 +88,7 @@ const examples = [
8888 name : "PDF View Component" ,
8989 description : "Show how to use the PSPDFKitView component with Navigator." ,
9090 action : component => {
91- const nextRoute = {
92- component : PSPDFKitView ,
93- passProps : {
94- document : "PDFs/Annual Report.pdf" ,
95- configuration : {
96- useParentNavigationBar : true ,
97- showDocumentLabel : true
98- } ,
99- style : { flex : 1 }
100- }
101- } ;
102- component . props . navigator . push ( nextRoute ) ;
91+ component . props . navigation . push ( "ConfiguredPDFViewComponent" ) ;
10392 }
10493 } ,
10594 {
@@ -196,10 +185,7 @@ const examples = [
196185 name : "Customize the Toolbar" ,
197186 description : "Shows how to customize the buttons in the toolbar." ,
198187 action : component => {
199- const nextRoute = {
200- component : ToolbarCustomization
201- } ;
202- component . props . navigator . push ( nextRoute ) ;
188+ component . props . navigation . push ( "ToolbarCustomization" ) ;
203189 }
204190 }
205191] ;
@@ -826,9 +812,9 @@ class ToolbarCustomization extends Component {
826812 configuration = { {
827813 backgroundColor : processColor ( "lightgrey" ) ,
828814 showThumbnailBar : "scrollable" ,
829- useParentNavigationBar : true
815+ useParentNavigationBar : false
830816 } }
831- leftBarButtonItems = { [ "closeButtonItem " ] }
817+ leftBarButtonItems = { [ "settingsButtonItem " ] }
832818 style = { { flex : 1 , color : pspdfkitColor } }
833819 />
834820 < View
@@ -875,7 +861,19 @@ class ToolbarCustomization extends Component {
875861 }
876862}
877863
878- export default class Catalog extends Component {
864+ class Catalog extends Component < { } > {
865+ static navigationOptions = {
866+ title : "Catalog"
867+ } ;
868+
869+ // Initialize the hardcoded data
870+ constructor ( props ) {
871+ super ( props ) ;
872+ this . state = {
873+ dataSource : examples
874+ } ;
875+ }
876+
879877 render ( ) {
880878 return (
881879 < View style = { styles . page } >
@@ -947,6 +945,9 @@ export default StackNavigator(
947945 } ,
948946 ProgrammaticFormFilling : {
949947 screen : ProgrammaticFormFilling
948+ } ,
949+ ToolbarCustomization : {
950+ screen : ToolbarCustomization
950951 }
951952 } ,
952953 {
0 commit comments