expo-navigation-bar 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '1.
|
|
6
|
+
version = '1.1.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
@@ -61,7 +61,7 @@ android {
|
|
|
61
61
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
62
62
|
targetSdkVersion safeExtGet("targetSdkVersion", 30)
|
|
63
63
|
versionCode 1
|
|
64
|
-
versionName '1.
|
|
64
|
+
versionName '1.1.0'
|
|
65
65
|
}
|
|
66
66
|
lintOptions {
|
|
67
67
|
abortOnError false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-navigation-bar",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Interact with the system navigation bar",
|
|
5
5
|
"main": "build/NavigationBar.js",
|
|
6
6
|
"types": "build/NavigationBar.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://github.com/expo/expo/issues"
|
|
28
28
|
},
|
|
29
29
|
"jest": {
|
|
30
|
-
"preset": "expo-module-scripts
|
|
30
|
+
"preset": "expo-module-scripts"
|
|
31
31
|
},
|
|
32
32
|
"author": "650 Industries, Inc.",
|
|
33
33
|
"license": "MIT",
|
|
@@ -35,12 +35,14 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@expo/config-plugins": "^4.0.2",
|
|
37
37
|
"@react-native/normalize-color": "^2.0.0",
|
|
38
|
-
"expo-modules-core": "~0.4.2",
|
|
39
38
|
"debug": "^4.3.2"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@types/debug": "^4.1.7",
|
|
43
42
|
"expo-module-scripts": "^2.0.0"
|
|
44
43
|
},
|
|
45
|
-
"
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"expo": "*"
|
|
46
|
+
},
|
|
47
|
+
"gitHead": "2e5c6983b86d5ecfca028ba64002897d8adc2cc4"
|
|
46
48
|
}
|
|
@@ -9,7 +9,7 @@ const config_plugins_1 = require("@expo/config-plugins");
|
|
|
9
9
|
const normalize_color_1 = __importDefault(require("@react-native/normalize-color"));
|
|
10
10
|
// @ts-ignore
|
|
11
11
|
const debug_1 = __importDefault(require("debug"));
|
|
12
|
-
const debug = debug_1.default('expo:system-navigation-bar:plugin');
|
|
12
|
+
const debug = (0, debug_1.default)('expo:system-navigation-bar:plugin');
|
|
13
13
|
const pkg = require('expo-navigation-bar/package.json');
|
|
14
14
|
// strings.xml keys, this should not change.
|
|
15
15
|
const BORDER_COLOR_KEY = 'expo_navigation_bar_border_color';
|
|
@@ -25,7 +25,7 @@ const LEGACY_BAR_STYLE_MAP = {
|
|
|
25
25
|
'light-content': 'light',
|
|
26
26
|
};
|
|
27
27
|
function convertColorAndroid(input) {
|
|
28
|
-
let color = normalize_color_1.default(input);
|
|
28
|
+
let color = (0, normalize_color_1.default)(input);
|
|
29
29
|
if (!color) {
|
|
30
30
|
throw new Error('Invalid color value: ' + input);
|
|
31
31
|
}
|
|
@@ -82,7 +82,7 @@ const withAndroidNavigationBarExpoGoManifest = (config, props) => {
|
|
|
82
82
|
exports.withAndroidNavigationBarExpoGoManifest = withAndroidNavigationBarExpoGoManifest;
|
|
83
83
|
const withNavigationBar = (config, _props) => {
|
|
84
84
|
const props = resolveProps(config, _props);
|
|
85
|
-
config = exports.withAndroidNavigationBarExpoGoManifest(config, props);
|
|
85
|
+
config = (0, exports.withAndroidNavigationBarExpoGoManifest)(config, props);
|
|
86
86
|
debug('Props:', props);
|
|
87
87
|
// TODO: Add this to expo/config-plugins
|
|
88
88
|
// Elevate props to a static value on extra so Expo Go can read it.
|
|
@@ -93,7 +93,7 @@ const withNavigationBar = (config, _props) => {
|
|
|
93
93
|
// Use built-in styles instead of Expo custom properties, this makes the project hopefully a bit more predictable for bare users.
|
|
94
94
|
config = withNavigationBarColors(config, props);
|
|
95
95
|
config = withNavigationBarStyles(config, props);
|
|
96
|
-
return config_plugins_1.withStringsXml(config, (config) => {
|
|
96
|
+
return (0, config_plugins_1.withStringsXml)(config, (config) => {
|
|
97
97
|
config.modResults = setStrings(config.modResults, props);
|
|
98
98
|
return config;
|
|
99
99
|
});
|
|
@@ -124,13 +124,13 @@ function setStrings(strings, { borderColor, visibility, position, behavior, lega
|
|
|
124
124
|
}
|
|
125
125
|
exports.setStrings = setStrings;
|
|
126
126
|
const withNavigationBarColors = (config, props) => {
|
|
127
|
-
return config_plugins_1.withAndroidColors(config, (config) => {
|
|
127
|
+
return (0, config_plugins_1.withAndroidColors)(config, (config) => {
|
|
128
128
|
config.modResults = setNavigationBarColors(props, config.modResults);
|
|
129
129
|
return config;
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
132
|
const withNavigationBarStyles = (config, props) => {
|
|
133
|
-
return config_plugins_1.withAndroidStyles(config, (config) => {
|
|
133
|
+
return (0, config_plugins_1.withAndroidStyles)(config, (config) => {
|
|
134
134
|
config.modResults = setNavigationBarStyles(props, config.modResults);
|
|
135
135
|
return config;
|
|
136
136
|
});
|
|
@@ -163,4 +163,4 @@ function setNavigationBarStyles({ backgroundColor, barStyle }, styles) {
|
|
|
163
163
|
return styles;
|
|
164
164
|
}
|
|
165
165
|
exports.setNavigationBarStyles = setNavigationBarStyles;
|
|
166
|
-
exports.default = config_plugins_1.createRunOncePlugin(withNavigationBar, pkg.name, pkg.version);
|
|
166
|
+
exports.default = (0, config_plugins_1.createRunOncePlugin)(withNavigationBar, pkg.name, pkg.version);
|