fix(rn,video-layout) fix mobile

In adcd9a501b a call to getCurrentLayout
was introduced, which is not mobile-friendly :-(
This commit is contained in:
Saúl Ibarra Corretgé 2022-09-05 20:40:28 +02:00 committed by Saúl Ibarra Corretgé
parent 5f62acc67c
commit 06842c724a
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@ export function getAutoPinSetting() {
* @returns {string}
*/
export function getCurrentLayout(state: Object) {
if (shouldDisplayTileView(state)) {
if (navigator.product === 'ReactNative') {
// FIXME: what should this return?
return undefined;
} else if (shouldDisplayTileView(state)) {
return LAYOUTS.TILE_VIEW;
} else if (interfaceConfig.VERTICAL_FILMSTRIP) {
if (isStageFilmstripAvailable(state, 2)) {