From 68d7ab06b827380cf84063eb37481457f26c6f7b Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Mon, 18 May 2020 13:30:17 -0300 Subject: [PATCH] [FIX] Change bar color while no activity attached (#2130) Co-authored-by: Diego Mello --- .../react-native-navigation-bar-color+2.0.1.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/react-native-navigation-bar-color+2.0.1.patch diff --git a/patches/react-native-navigation-bar-color+2.0.1.patch b/patches/react-native-navigation-bar-color+2.0.1.patch new file mode 100644 index 000000000..9dc5546df --- /dev/null +++ b/patches/react-native-navigation-bar-color+2.0.1.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/react-native-navigation-bar-color/src/index.js b/node_modules/react-native-navigation-bar-color/src/index.js +index eeab32f..d4d8a2c 100644 +--- a/node_modules/react-native-navigation-bar-color/src/index.js ++++ b/node_modules/react-native-navigation-bar-color/src/index.js +@@ -9,7 +9,7 @@ const changeNavigationBarColor = ( + ) => { + if (Platform.OS === 'android') { + const LightNav = light ? true : false; +- NavigationBarColor.changeNavigationBarColor(color, LightNav, animated); ++ return NavigationBarColor.changeNavigationBarColor(color, LightNav, animated); + } + }; + const hideNavigationBar = () => {