We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e26b6 commit 50facd5Copy full SHA for 50facd5
src/style/scheme.ts
@@ -1,5 +1,5 @@
1
import {Appearance} from 'react-native';
2
-import {remove, xor, isEmpty} from 'lodash';
+import {remove, xor, isEmpty, merge} from 'lodash';
3
4
export type Schemes = {light: {[key: string]: string}; dark: {[key: string]: string}};
5
export type SchemeType = 'default' | 'light' | 'dark';
@@ -61,7 +61,7 @@ class Scheme {
61
throw new Error(`There is a mismatch in scheme keys: ${missingKeys.join(', ')}`);
62
}
63
64
- this.schemes = schemes;
+ merge(this.schemes, schemes);
65
66
67
/**
0 commit comments