Skip to content

Add centered key with bool value in config.json file #195

@oboujaouane

Description

@oboujaouane

Hi,

First thank you for your job!

Please can you in the next release add key "centered" for an element which is a bool value with false by default and if you set it to true in .json config file then your element is centered horizontally ?

In fact I was unable to center my play button in my bottom bar without this parameter :(

I made changes quickly in my local project and it's work perfectly. You can see the final result on simulator iPhone XS Max on iOS 12.1 :

bottom_button_centered_horizontally

In my VideoPlayer.json config file I can add this key "centered". An example:

"bottomBar": {
"backgroundColor": ["#ffffff"],
"height": 65,
"elements": [
{
"type": "toggleButton",
"identifier": "play",
"height": 65,
"image": "video_player_play_button",
"toggledImage": "video_player_pause_button",
"centered": true
}
]
}

Don't hesitate if I can help.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions