Skip to content

Removing the top bar

Guillaume Gendre edited this page Apr 29, 2019 · 7 revisions

If you want to remove the top bar from your view, you dont have to write native code anymore.

Change the bars with the Cobalt nativeBars feature straight from the cobalt.json file.

Sample configuration bellow.

{
    "controllers": {
        "default": {
            "ios": "ViewController",
            "android": ".activities.MainActivity",
            "pullToRefresh": true,
            "bars":{
                "visible" : {
                    "top": false
                }
            }
        }
    }
}
Clone this wiki locally