charliesbot / react-native-media-controls

A sweet UI component to manipulate your media. Strongly typed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

need/requirement media controls container opacity always 0 (play button and slider visible or invisible )

RupamShaw opened this issue · comments

commented

Is it possible to make clear background of media control container , even when play and slider is visible.
Requirement no need to show band(opacity) always should be clear background of media controls container.

commented

Changes done to remove the band: go to the file ./react-native-media-controls/dist/react-native-media-controls.cjs.development.js

there is a variable defined name as containerBackgroundColor, set it to "transparent".

var containerBackgroundColor = "transparent";

could you try using the master branch and the containerStyle prop? I haven’t send a new release to npm as I need to test a little bit more the release, but let me know how it goes!

By using the containerStyle prop, you won’t need to override that variable manually.

commented

sure will let you know. Thanks