|
@@ -7,6 +7,10 @@ import com.reactnativenavigation.params.ScreenStyleParams;
|
7
|
7
|
public class ScreenStyleParamsParser {
|
8
|
8
|
public static ScreenStyleParams parse(Bundle params) {
|
9
|
9
|
ScreenStyleParams result = new ScreenStyleParams();
|
|
10
|
+ if (params == null) {
|
|
11
|
+ return result;
|
|
12
|
+ }
|
|
13
|
+
|
10
|
14
|
result.statusBarColor = ColorParser.parse(params.getString("statusBarColor"));
|
11
|
15
|
result.topBarColor = ColorParser.parse(params.getString("topBarColor"));
|
12
|
16
|
result.navigationBarColor = ColorParser.parse(params.getString("navigationBarColor"));
|