How to remove Header/ToolBar from a page
Introduction
This is a simple example of how to remove the header and toolbar from a page.
Code
- Open the page file of the page you want to remove the header and toolbar from.
- Add the following code to the attributes of the page.
const CustomPage = {
title: "Custom Page",
blocks: [],
attributes: {
headerShown: false, // this is the line you need to add
},
};
export default CustomPage;
- Save the file and reload the app.