From 2c5dedfb4260f604df329881a6ed3efc51f9df3a Mon Sep 17 00:00:00 2001 From: Andrew Schenk <39064173+andrewschenk-linx@users.noreply.github.com> Date: Thu, 13 Aug 2020 10:06:17 -0500 Subject: [PATCH] Fix yellow box warning Accessing view manager configs directly off UIManager via UIManager['R5VideoView'] is no longer supported. Use UIManager.getViewManagerConfig('R5VideoView') instead. --- src/commands/R5VideoView.commands.android.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/R5VideoView.commands.android.js b/src/commands/R5VideoView.commands.android.js index f519901..a064afa 100644 --- a/src/commands/R5VideoView.commands.android.js +++ b/src/commands/R5VideoView.commands.android.js @@ -2,7 +2,7 @@ import { NativeModules } from 'react-native' import R5PublishType from '../enum/R5VideoView.publishtype' const { UIManager } = NativeModules -const { R5VideoView } = UIManager +const R5VideoView = UIManager.getViewManagerConfig('R5VideoView') const { Commands } = R5VideoView export const subscribe = (handle, streamName) => {