Skip to content

Commit 50facd5

Browse files
committed
merge schemes in loadSchemes method (wix#1929)
1 parent 33e26b6 commit 50facd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/style/scheme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Appearance} from 'react-native';
2-
import {remove, xor, isEmpty} from 'lodash';
2+
import {remove, xor, isEmpty, merge} from 'lodash';
33

44
export type Schemes = {light: {[key: string]: string}; dark: {[key: string]: string}};
55
export type SchemeType = 'default' | 'light' | 'dark';
@@ -61,7 +61,7 @@ class Scheme {
6161
throw new Error(`There is a mismatch in scheme keys: ${missingKeys.join(', ')}`);
6262
}
6363

64-
this.schemes = schemes;
64+
merge(this.schemes, schemes);
6565
}
6666

6767
/**

0 commit comments

Comments
 (0)