diff --git a/.nvmrc b/.nvmrc
index 5397c87f..55bffd62 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-16.18.1
+18.15.0
diff --git a/example/app.json b/example/app.json
index 3c4181e6..c8e2e5b6 100644
--- a/example/app.json
+++ b/example/app.json
@@ -15,6 +15,9 @@
"ios": {
"supportsTablet": true
},
+ "androidStatusBar": {
+ "translucent": true
+ },
"web": {
"favicon": "./favicon.png",
"name": "React Native Paper Dates",
diff --git a/example/package.json b/example/package.json
index 75ebeda9..23ddac2c 100644
--- a/example/package.json
+++ b/example/package.json
@@ -16,7 +16,7 @@
"expo-splash-screen": "~0.20.5",
"react": "18.2.0",
"react-dom": "18.2.0",
- "react-native": "0.72.4",
+ "react-native": "0.72.6",
"react-native-paper": "^5.10.4",
"react-native-web": "~0.19.8"
},
diff --git a/example/src/App.tsx b/example/src/App.tsx
index b763362b..161d332e 100644
--- a/example/src/App.tsx
+++ b/example/src/App.tsx
@@ -24,6 +24,7 @@ import {
Chip,
MD3DarkTheme,
MD3LightTheme,
+ MD2LightTheme,
} from 'react-native-paper'
import {
DatePickerModal,
@@ -55,6 +56,7 @@ import {
} from 'react-native-paper-dates'
import { useCallback, useState } from 'react'
+const presentationStyles = ['overFullScreen', 'pageSheet'] as const
const locales: [string, TranslationsType][] = [
['ar', ar],
['ca', ca],
@@ -83,7 +85,13 @@ locales.forEach((locale) => {
registerTranslation(locale[0], locale[1])
})
-function App() {
+function App({
+ materialYouEnabled,
+ setMaterialYouEnabled,
+}: {
+ materialYouEnabled: boolean
+ setMaterialYouEnabled: (v: boolean) => void
+}) {
/** Hooks. */
const theme = useTheme()
const insets = useSafeAreaInsets()
@@ -101,6 +109,8 @@ function App() {
minutes: number | undefined
}>({ hours: undefined, minutes: undefined })
const [locale, setLocale] = useState('en-GB')
+ const [presentationStyle, setPresentationStyle] =
+ useState<(typeof presentationStyles)[number]>('overFullScreen')
const [timeOpen, setTimeOpen] = useState(false)
const [rangeOpen, setRangeOpen] = useState(false)
const [singleOpen, setSingleOpen] = useState(false)
@@ -182,8 +192,8 @@ function App() {
return (
<>
@@ -269,7 +279,58 @@ function App() {
View documentation
+
+
+ Material theme
+
+
+ setMaterialYouEnabled(true)}
+ style={styles.chip}
+ >
+ Material You
+
+ setMaterialYouEnabled(false)}
+ style={styles.chip}
+ >
+ Material Design 2
+
+
+
+
+ Presentation Style (iOS only)
+
+
+ {presentationStyles.map((option) => {
+ return (
+
+ setPresentationStyle(
+ option as (typeof presentationStyles)[number]
+ )
+ }
+ style={styles.chip}
+ >
+ {option}
+
+ )
+ })}
+
-
-
+
+
)
diff --git a/example/yarn.lock b/example/yarn.lock
index 904de001..643f0714 100644
--- a/example/yarn.lock
+++ b/example/yarn.lock
@@ -1865,44 +1865,44 @@
mkdirp "^1.0.4"
rimraf "^3.0.2"
-"@react-native-community/cli-clean@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-11.3.6.tgz#43a06cbee1a5480da804debc4f94662a197720f2"
- integrity sha512-jOOaeG5ebSXTHweq1NznVJVAFKtTFWL4lWgUXl845bCGX7t1lL8xQNWHKwT8Oh1pGR2CI3cKmRjY4hBg+pEI9g==
+"@react-native-community/cli-clean@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-clean/-/cli-clean-11.3.7.tgz#cb4c2f225f78593412c2d191b55b8570f409a48f"
+ integrity sha512-twtsv54ohcRyWVzPXL3F9VHGb4Qhn3slqqRs3wEuRzjR7cTmV2TIO2b1VhaqF4HlCgNd+cGuirvLtK2JJyaxMg==
dependencies:
- "@react-native-community/cli-tools" "11.3.6"
+ "@react-native-community/cli-tools" "11.3.7"
chalk "^4.1.2"
execa "^5.0.0"
prompts "^2.4.0"
-"@react-native-community/cli-config@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-config/-/cli-config-11.3.6.tgz#6d3636a8a3c4542ebb123eaf61bbbc0c2a1d2a6b"
- integrity sha512-edy7fwllSFLan/6BG6/rznOBCLPrjmJAE10FzkEqNLHowi0bckiAPg1+1jlgQ2qqAxV5kuk+c9eajVfQvPLYDA==
+"@react-native-community/cli-config@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-config/-/cli-config-11.3.7.tgz#4ce95548252ecb094b576369abebf9867c95d277"
+ integrity sha512-FDBLku9xskS+bx0YFJFLCmUJhEZ4/MMSC9qPYOGBollWYdgE7k/TWI0IeYFmMALAnbCdKQAYP5N29N55Tad8lg==
dependencies:
- "@react-native-community/cli-tools" "11.3.6"
+ "@react-native-community/cli-tools" "11.3.7"
chalk "^4.1.2"
cosmiconfig "^5.1.0"
deepmerge "^4.3.0"
glob "^7.1.3"
joi "^17.2.1"
-"@react-native-community/cli-debugger-ui@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-11.3.6.tgz#1eb2276450f270a938686b49881fe232a08c01c4"
- integrity sha512-jhMOSN/iOlid9jn/A2/uf7HbC3u7+lGktpeGSLnHNw21iahFBzcpuO71ekEdlmTZ4zC/WyxBXw9j2ka33T358w==
+"@react-native-community/cli-debugger-ui@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-11.3.7.tgz#2147b73313af8de3c9b396406d5d344b904cf2bb"
+ integrity sha512-aVmKuPKHZENR8SrflkMurZqeyLwbKieHdOvaZCh1Nn/0UC5CxWcyST2DB2XQboZwsvr3/WXKJkSUO+SZ1J9qTQ==
dependencies:
serve-static "^1.13.1"
-"@react-native-community/cli-doctor@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-doctor/-/cli-doctor-11.3.6.tgz#fa33ee00fe5120af516aa0f17fe3ad50270976e7"
- integrity sha512-UT/Tt6omVPi1j6JEX+CObc85eVFghSZwy4GR9JFMsO7gNg2Tvcu1RGWlUkrbmWMAMHw127LUu6TGK66Ugu1NLA==
+"@react-native-community/cli-doctor@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-doctor/-/cli-doctor-11.3.7.tgz#7d5f5b1aea78134bba713fa97795986345ff1344"
+ integrity sha512-YEHUqWISOHnsl5+NM14KHelKh68Sr5/HeEZvvNdIcvcKtZic3FU7Xd1WcbNdo3gCq5JvzGFfufx02Tabh5zmrg==
dependencies:
- "@react-native-community/cli-config" "11.3.6"
- "@react-native-community/cli-platform-android" "11.3.6"
- "@react-native-community/cli-platform-ios" "11.3.6"
- "@react-native-community/cli-tools" "11.3.6"
+ "@react-native-community/cli-config" "11.3.7"
+ "@react-native-community/cli-platform-android" "11.3.7"
+ "@react-native-community/cli-platform-ios" "11.3.7"
+ "@react-native-community/cli-tools" "11.3.7"
chalk "^4.1.2"
command-exists "^1.2.8"
envinfo "^7.7.2"
@@ -1918,64 +1918,64 @@
wcwidth "^1.0.1"
yaml "^2.2.1"
-"@react-native-community/cli-hermes@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-hermes/-/cli-hermes-11.3.6.tgz#b1acc7feff66ab0859488e5812b3b3e8b8e9434c"
- integrity sha512-O55YAYGZ3XynpUdePPVvNuUPGPY0IJdctLAOHme73OvS80gNwfntHDXfmY70TGHWIfkK2zBhA0B+2v8s5aTyTA==
+"@react-native-community/cli-hermes@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-hermes/-/cli-hermes-11.3.7.tgz#091e730a1f8bace6c3729e8744bad6141002e0e8"
+ integrity sha512-chkKd8n/xeZkinRvtH6QcYA8rjNOKU3S3Lw/3Psxgx+hAYV0Gyk95qJHTalx7iu+PwjOOqqvCkJo5jCkYLkoqw==
dependencies:
- "@react-native-community/cli-platform-android" "11.3.6"
- "@react-native-community/cli-tools" "11.3.6"
+ "@react-native-community/cli-platform-android" "11.3.7"
+ "@react-native-community/cli-tools" "11.3.7"
chalk "^4.1.2"
hermes-profile-transformer "^0.0.6"
ip "^1.1.5"
-"@react-native-community/cli-platform-android@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-11.3.6.tgz#6f3581ca4eed3deec7edba83c1bc467098c8167b"
- integrity sha512-ZARrpLv5tn3rmhZc//IuDM1LSAdYnjUmjrp58RynlvjLDI4ZEjBAGCQmgysRgXAsK7ekMrfkZgemUczfn9td2A==
+"@react-native-community/cli-platform-android@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-11.3.7.tgz#7845bc48258b6bb55df208a23b3690647f113995"
+ integrity sha512-WGtXI/Rm178UQb8bu1TAeFC/RJvYGnbHpULXvE20GkmeJ1HIrMjkagyk6kkY3Ej25JAP2R878gv+TJ/XiRhaEg==
dependencies:
- "@react-native-community/cli-tools" "11.3.6"
+ "@react-native-community/cli-tools" "11.3.7"
chalk "^4.1.2"
execa "^5.0.0"
glob "^7.1.3"
logkitty "^0.7.1"
-"@react-native-community/cli-platform-ios@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-11.3.6.tgz#0fa58d01f55d85618c4218925509a4be77867dab"
- integrity sha512-tZ9VbXWiRW+F+fbZzpLMZlj93g3Q96HpuMsS6DRhrTiG+vMQ3o6oPWSEEmMGOvJSYU7+y68Dc9ms2liC7VD6cw==
+"@react-native-community/cli-platform-ios@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-11.3.7.tgz#87478f907634713b7236c77870446a5ca1f35ff1"
+ integrity sha512-Z/8rseBput49EldX7MogvN6zJlWzZ/4M97s2P+zjS09ZoBU7I0eOKLi0N9wx+95FNBvGQQ/0P62bB9UaFQH2jw==
dependencies:
- "@react-native-community/cli-tools" "11.3.6"
+ "@react-native-community/cli-tools" "11.3.7"
chalk "^4.1.2"
execa "^5.0.0"
fast-xml-parser "^4.0.12"
glob "^7.1.3"
ora "^5.4.1"
-"@react-native-community/cli-plugin-metro@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-11.3.6.tgz#2d632c304313435c9ea104086901fbbeba0f1882"
- integrity sha512-D97racrPX3069ibyabJNKw9aJpVcaZrkYiEzsEnx50uauQtPDoQ1ELb/5c6CtMhAEGKoZ0B5MS23BbsSZcLs2g==
+"@react-native-community/cli-plugin-metro@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-11.3.7.tgz#2e8a9deb30b40495c5c1347a1837a824400fa00f"
+ integrity sha512-0WhgoBVGF1f9jXcuagQmtxpwpfP+2LbLZH4qMyo6OtYLWLG13n2uRep+8tdGzfNzl1bIuUTeE9yZSAdnf9LfYQ==
dependencies:
- "@react-native-community/cli-server-api" "11.3.6"
- "@react-native-community/cli-tools" "11.3.6"
+ "@react-native-community/cli-server-api" "11.3.7"
+ "@react-native-community/cli-tools" "11.3.7"
chalk "^4.1.2"
execa "^5.0.0"
- metro "0.76.7"
- metro-config "0.76.7"
- metro-core "0.76.7"
- metro-react-native-babel-transformer "0.76.7"
- metro-resolver "0.76.7"
- metro-runtime "0.76.7"
+ metro "0.76.8"
+ metro-config "0.76.8"
+ metro-core "0.76.8"
+ metro-react-native-babel-transformer "0.76.8"
+ metro-resolver "0.76.8"
+ metro-runtime "0.76.8"
readline "^1.3.0"
-"@react-native-community/cli-server-api@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-server-api/-/cli-server-api-11.3.6.tgz#3a16039518f7f3865f85f8f54b19174448bbcdbb"
- integrity sha512-8GUKodPnURGtJ9JKg8yOHIRtWepPciI3ssXVw5jik7+dZ43yN8P5BqCoDaq8e1H1yRer27iiOfT7XVnwk8Dueg==
+"@react-native-community/cli-server-api@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-11.3.7.tgz#2cce54b3331c9c51b9067129c297ab2e9a142216"
+ integrity sha512-yoFyGdvR3HxCnU6i9vFqKmmSqFzCbnFSnJ29a+5dppgPRetN+d//O8ard/YHqHzToFnXutAFf2neONn23qcJAg==
dependencies:
- "@react-native-community/cli-debugger-ui" "11.3.6"
- "@react-native-community/cli-tools" "11.3.6"
+ "@react-native-community/cli-debugger-ui" "11.3.7"
+ "@react-native-community/cli-tools" "11.3.7"
compression "^1.7.1"
connect "^3.6.5"
errorhandler "^1.5.1"
@@ -1984,10 +1984,10 @@
serve-static "^1.13.1"
ws "^7.5.1"
-"@react-native-community/cli-tools@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-11.3.6.tgz#ec213b8409917a56e023595f148c84b9cb3ad871"
- integrity sha512-JpmUTcDwAGiTzLsfMlIAYpCMSJ9w2Qlf7PU7mZIRyEu61UzEawyw83DkqfbzDPBuRwRnaeN44JX2CP/yTO3ThQ==
+"@react-native-community/cli-tools@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-11.3.7.tgz#37aa7efc7b4a1b7077d541f1d7bb11a2ab7b6ff2"
+ integrity sha512-peyhP4TV6Ps1hk+MBHTFaIR1eI3u+OfGBvr5r0wPwo3FAJvldRinMgcB/TcCcOBXVORu7ba1XYjkubPeYcqAyA==
dependencies:
appdirsjs "^1.2.4"
chalk "^4.1.2"
@@ -1999,27 +1999,27 @@
semver "^7.5.2"
shell-quote "^1.7.3"
-"@react-native-community/cli-types@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli-types/-/cli-types-11.3.6.tgz#34012f1d0cb1c4039268828abc07c9c69f2e15be"
- integrity sha512-6DxjrMKx5x68N/tCJYVYRKAtlRHbtUVBZrnAvkxbRWFD9v4vhNgsPM0RQm8i2vRugeksnao5mbnRGpS6c0awCw==
+"@react-native-community/cli-types@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-11.3.7.tgz#12fe7cff3da08bd27e11116531b2e001939854b9"
+ integrity sha512-OhSr/TiDQkXjL5YOs8+hvGSB+HltLn5ZI0+A3DCiMsjUgTTsYh+Z63OtyMpNjrdCEFcg0MpfdU2uxstCS6Dc5g==
dependencies:
joi "^17.2.1"
-"@react-native-community/cli@11.3.6":
- version "11.3.6"
- resolved "https://registry.yarnpkg.com/@react-native-community/cli/-/cli-11.3.6.tgz#d92618d75229eaf6c0391a6b075684eba5d9819f"
- integrity sha512-bdwOIYTBVQ9VK34dsf6t3u6vOUU5lfdhKaAxiAVArjsr7Je88Bgs4sAbsOYsNK3tkE8G77U6wLpekknXcanlww==
- dependencies:
- "@react-native-community/cli-clean" "11.3.6"
- "@react-native-community/cli-config" "11.3.6"
- "@react-native-community/cli-debugger-ui" "11.3.6"
- "@react-native-community/cli-doctor" "11.3.6"
- "@react-native-community/cli-hermes" "11.3.6"
- "@react-native-community/cli-plugin-metro" "11.3.6"
- "@react-native-community/cli-server-api" "11.3.6"
- "@react-native-community/cli-tools" "11.3.6"
- "@react-native-community/cli-types" "11.3.6"
+"@react-native-community/cli@11.3.7":
+ version "11.3.7"
+ resolved "https://registry.npmjs.org/@react-native-community/cli/-/cli-11.3.7.tgz#564c0054269d8385fa9d301750b2e56dbb5c0cc9"
+ integrity sha512-Ou8eDlF+yh2rzXeCTpMPYJ2fuqsusNOhmpYPYNQJQ2h6PvaF30kPomflgRILems+EBBuggRtcT+I+1YH4o/q6w==
+ dependencies:
+ "@react-native-community/cli-clean" "11.3.7"
+ "@react-native-community/cli-config" "11.3.7"
+ "@react-native-community/cli-debugger-ui" "11.3.7"
+ "@react-native-community/cli-doctor" "11.3.7"
+ "@react-native-community/cli-hermes" "11.3.7"
+ "@react-native-community/cli-plugin-metro" "11.3.7"
+ "@react-native-community/cli-server-api" "11.3.7"
+ "@react-native-community/cli-tools" "11.3.7"
+ "@react-native-community/cli-types" "11.3.7"
chalk "^4.1.2"
commander "^9.4.1"
execa "^5.0.0"
@@ -2034,14 +2034,17 @@
resolved "https://registry.yarnpkg.com/@react-native/assets-registry/-/assets-registry-0.72.0.tgz#c82a76a1d86ec0c3907be76f7faf97a32bbed05d"
integrity sha512-Im93xRJuHHxb1wniGhBMsxLwcfzdYreSZVQGDoMJgkd6+Iky61LInGEHnQCTN0fKNYF1Dvcofb4uMmE1RQHXHQ==
-"@react-native/codegen@^0.72.6":
- version "0.72.6"
- resolved "https://registry.yarnpkg.com/@react-native/codegen/-/codegen-0.72.6.tgz#029cf61f82f5c6872f0b2ce58f27c4239a5586c8"
- integrity sha512-idTVI1es/oopN0jJT/0jB6nKdvTUKE3757zA5+NPXZTeB46CIRbmmos4XBiAec8ufu9/DigLPbHTYAaMNZJ6Ig==
+"@react-native/codegen@^0.72.7":
+ version "0.72.8"
+ resolved "https://registry.npmjs.org/@react-native/codegen/-/codegen-0.72.8.tgz#0593f628e1310f430450a9479fbb4be35e7b63d6"
+ integrity sha512-jQCcBlXV7B7ap5VlHhwIPieYz89yiRgwd2FPUBu+unz+kcJ6pAiB2U8RdLDmyIs8fiWd+Vq1xxaWs4TR329/ng==
dependencies:
"@babel/parser" "^7.20.0"
flow-parser "^0.206.0"
+ glob "^7.1.1"
+ invariant "^2.2.4"
jscodeshift "^0.14.0"
+ mkdirp "^0.5.1"
nullthrows "^1.1.1"
"@react-native/gradle-plugin@^0.72.11":
@@ -4635,7 +4638,7 @@ glob@^6.0.1:
once "^1.3.0"
path-is-absolute "^1.0.0"
-glob@^7.0.3, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
+glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
version "7.2.3"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
@@ -5746,53 +5749,53 @@ methods@~1.1.2:
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==
-metro-babel-transformer@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-babel-transformer/-/metro-babel-transformer-0.76.7.tgz#ba620d64cbaf97d1aa14146d654a3e5d7477fc62"
- integrity sha512-bgr2OFn0J4r0qoZcHrwEvccF7g9k3wdgTOgk6gmGHrtlZ1Jn3oCpklW/DfZ9PzHfjY2mQammKTc19g/EFGyOJw==
+metro-babel-transformer@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-babel-transformer/-/metro-babel-transformer-0.76.8.tgz#5efd1027353b36b73706164ef09c290dceac096a"
+ integrity sha512-Hh6PW34Ug/nShlBGxkwQJSgPGAzSJ9FwQXhUImkzdsDgVu6zj5bx258J8cJVSandjNoQ8nbaHK6CaHlnbZKbyA==
dependencies:
"@babel/core" "^7.20.0"
hermes-parser "0.12.0"
nullthrows "^1.1.1"
-metro-cache-key@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-cache-key/-/metro-cache-key-0.76.7.tgz#70913f43b92b313096673c37532edd07438cb325"
- integrity sha512-0pecoIzwsD/Whn/Qfa+SDMX2YyasV0ndbcgUFx7w1Ct2sLHClujdhQ4ik6mvQmsaOcnGkIyN0zcceMDjC2+BFQ==
+metro-cache-key@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-cache-key/-/metro-cache-key-0.76.8.tgz#8a0a5e991c06f56fcc584acadacb313c312bdc16"
+ integrity sha512-buKQ5xentPig9G6T37Ww/R/bC+/V1MA5xU/D8zjnhlelsrPG6w6LtHUS61ID3zZcMZqYaELWk5UIadIdDsaaLw==
-metro-cache@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.76.7.tgz#e49e51423fa960df4eeff9760d131f03e003a9eb"
- integrity sha512-nWBMztrs5RuSxZRI7hgFgob5PhYDmxICh9FF8anm9/ito0u0vpPvRxt7sRu8fyeD2AHdXqE7kX32rWY0LiXgeg==
+metro-cache@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-cache/-/metro-cache-0.76.8.tgz#296c1c189db2053b89735a8f33dbe82575f53661"
+ integrity sha512-QBJSJIVNH7Hc/Yo6br/U/qQDUpiUdRgZ2ZBJmvAbmAKp2XDzsapnMwK/3BGj8JNWJF7OLrqrYHsRsukSbUBpvQ==
dependencies:
- metro-core "0.76.7"
+ metro-core "0.76.8"
rimraf "^3.0.2"
-metro-config@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-config/-/metro-config-0.76.7.tgz#f0fc171707523aa7d3a9311550872136880558c0"
- integrity sha512-CFDyNb9bqxZemiChC/gNdXZ7OQkIwmXzkrEXivcXGbgzlt/b2juCv555GWJHyZSlorwnwJfY3uzAFu4A9iRVfg==
+metro-config@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-config/-/metro-config-0.76.8.tgz#20bd5397fcc6096f98d2a813a7cecb38b8af062d"
+ integrity sha512-SL1lfKB0qGHALcAk2zBqVgQZpazDYvYFGwCK1ikz0S6Y/CM2i2/HwuZN31kpX6z3mqjv/6KvlzaKoTb1otuSAA==
dependencies:
connect "^3.6.5"
cosmiconfig "^5.0.5"
jest-validate "^29.2.1"
- metro "0.76.7"
- metro-cache "0.76.7"
- metro-core "0.76.7"
- metro-runtime "0.76.7"
+ metro "0.76.8"
+ metro-cache "0.76.8"
+ metro-core "0.76.8"
+ metro-runtime "0.76.8"
-metro-core@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-core/-/metro-core-0.76.7.tgz#5d2b8bac2cde801dc22666ad7be1336d1f021b61"
- integrity sha512-0b8KfrwPmwCMW+1V7ZQPkTy2tsEKZjYG9Pu1PTsu463Z9fxX7WaR0fcHFshv+J1CnQSUTwIGGjbNvj1teKe+pw==
+metro-core@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-core/-/metro-core-0.76.8.tgz#917c8157c63406cb223522835abb8e7c6291dcad"
+ integrity sha512-sl2QLFI3d1b1XUUGxwzw/KbaXXU/bvFYrSKz6Sg19AdYGWFyzsgZ1VISRIDf+HWm4R/TJXluhWMEkEtZuqi3qA==
dependencies:
lodash.throttle "^4.1.1"
- metro-resolver "0.76.7"
+ metro-resolver "0.76.8"
-metro-file-map@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-file-map/-/metro-file-map-0.76.7.tgz#0f041a4f186ac672f0188180310609c8483ffe89"
- integrity sha512-s+zEkTcJ4mOJTgEE2ht4jIo1DZfeWreQR3tpT3gDV/Y/0UQ8aJBTv62dE775z0GLsWZApiblAYZsj7ZE8P06nw==
+metro-file-map@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-file-map/-/metro-file-map-0.76.8.tgz#a1db1185b6c316904ba6b53d628e5d1323991d79"
+ integrity sha512-A/xP1YNEVwO1SUV9/YYo6/Y1MmzhL4ZnVgcJC3VmHp/BYVOXVStzgVbWv2wILe56IIMkfXU+jpXrGKKYhFyHVw==
dependencies:
anymatch "^3.0.3"
debug "^2.2.0"
@@ -5809,10 +5812,10 @@ metro-file-map@0.76.7:
optionalDependencies:
fsevents "^2.3.2"
-metro-inspector-proxy@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-inspector-proxy/-/metro-inspector-proxy-0.76.7.tgz#c067df25056e932002a72a4b45cf7b4b749f808e"
- integrity sha512-rNZ/6edTl/1qUekAhAbaFjczMphM50/UjtxiKulo6vqvgn/Mjd9hVqDvVYfAMZXqPvlusD88n38UjVYPkruLSg==
+metro-inspector-proxy@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-inspector-proxy/-/metro-inspector-proxy-0.76.8.tgz#6b8678a7461b0b42f913a7881cc9319b4d3cddff"
+ integrity sha512-Us5o5UEd4Smgn1+TfHX4LvVPoWVo9VsVMn4Ldbk0g5CQx3Gu0ygc/ei2AKPGTwsOZmKxJeACj7yMH2kgxQP/iw==
dependencies:
connect "^3.6.5"
debug "^2.2.0"
@@ -5820,65 +5823,20 @@ metro-inspector-proxy@0.76.7:
ws "^7.5.1"
yargs "^17.6.2"
-metro-minify-terser@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-minify-terser/-/metro-minify-terser-0.76.7.tgz#aefac8bb8b6b3a0fcb5ea0238623cf3e100893ff"
- integrity sha512-FQiZGhIxCzhDwK4LxyPMLlq0Tsmla10X7BfNGlYFK0A5IsaVKNJbETyTzhpIwc+YFRT4GkFFwgo0V2N5vxO5HA==
+metro-minify-terser@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-minify-terser/-/metro-minify-terser-0.76.8.tgz#915ab4d1419257fc6a0b9fa15827b83fe69814bf"
+ integrity sha512-Orbvg18qXHCrSj1KbaeSDVYRy/gkro2PC7Fy2tDSH1c9RB4aH8tuMOIXnKJE+1SXxBtjWmQ5Yirwkth2DyyEZA==
dependencies:
terser "^5.15.0"
-metro-minify-uglify@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-minify-uglify/-/metro-minify-uglify-0.76.7.tgz#3e0143786718dcaea4e28a724698d4f8ac199a43"
- integrity sha512-FuXIU3j2uNcSvQtPrAJjYWHruPiQ+EpE++J9Z+VznQKEHcIxMMoQZAfIF2IpZSrZYfLOjVFyGMvj41jQMxV1Vw==
+metro-minify-uglify@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-minify-uglify/-/metro-minify-uglify-0.76.8.tgz#74745045ea2dd29f8783db483b2fce58385ba695"
+ integrity sha512-6l8/bEvtVaTSuhG1FqS0+Mc8lZ3Bl4RI8SeRIifVLC21eeSDp4CEBUWSGjpFyUDfi6R5dXzYaFnSgMNyfxADiQ==
dependencies:
uglify-es "^3.1.9"
-metro-react-native-babel-preset@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.76.7.tgz#dfe15c040d0918147a8b0e9f530d558287acbb54"
- integrity sha512-R25wq+VOSorAK3hc07NW0SmN8z9S/IR0Us0oGAsBcMZnsgkbOxu77Mduqf+f4is/wnWHc5+9bfiqdLnaMngiVw==
- dependencies:
- "@babel/core" "^7.20.0"
- "@babel/plugin-proposal-async-generator-functions" "^7.0.0"
- "@babel/plugin-proposal-class-properties" "^7.18.0"
- "@babel/plugin-proposal-export-default-from" "^7.0.0"
- "@babel/plugin-proposal-nullish-coalescing-operator" "^7.18.0"
- "@babel/plugin-proposal-numeric-separator" "^7.0.0"
- "@babel/plugin-proposal-object-rest-spread" "^7.20.0"
- "@babel/plugin-proposal-optional-catch-binding" "^7.0.0"
- "@babel/plugin-proposal-optional-chaining" "^7.20.0"
- "@babel/plugin-syntax-dynamic-import" "^7.8.0"
- "@babel/plugin-syntax-export-default-from" "^7.0.0"
- "@babel/plugin-syntax-flow" "^7.18.0"
- "@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0"
- "@babel/plugin-syntax-optional-chaining" "^7.0.0"
- "@babel/plugin-transform-arrow-functions" "^7.0.0"
- "@babel/plugin-transform-async-to-generator" "^7.20.0"
- "@babel/plugin-transform-block-scoping" "^7.0.0"
- "@babel/plugin-transform-classes" "^7.0.0"
- "@babel/plugin-transform-computed-properties" "^7.0.0"
- "@babel/plugin-transform-destructuring" "^7.20.0"
- "@babel/plugin-transform-flow-strip-types" "^7.20.0"
- "@babel/plugin-transform-function-name" "^7.0.0"
- "@babel/plugin-transform-literals" "^7.0.0"
- "@babel/plugin-transform-modules-commonjs" "^7.0.0"
- "@babel/plugin-transform-named-capturing-groups-regex" "^7.0.0"
- "@babel/plugin-transform-parameters" "^7.0.0"
- "@babel/plugin-transform-react-display-name" "^7.0.0"
- "@babel/plugin-transform-react-jsx" "^7.0.0"
- "@babel/plugin-transform-react-jsx-self" "^7.0.0"
- "@babel/plugin-transform-react-jsx-source" "^7.0.0"
- "@babel/plugin-transform-runtime" "^7.0.0"
- "@babel/plugin-transform-shorthand-properties" "^7.0.0"
- "@babel/plugin-transform-spread" "^7.0.0"
- "@babel/plugin-transform-sticky-regex" "^7.0.0"
- "@babel/plugin-transform-typescript" "^7.5.0"
- "@babel/plugin-transform-unicode-regex" "^7.0.0"
- "@babel/template" "^7.0.0"
- babel-plugin-transform-flow-enums "^0.0.2"
- react-refresh "^0.4.0"
-
metro-react-native-babel-preset@0.76.8:
version "0.76.8"
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.76.8.tgz#7476efae14363cbdfeeec403b4f01d7348e6c048"
@@ -5924,29 +5882,21 @@ metro-react-native-babel-preset@0.76.8:
babel-plugin-transform-flow-enums "^0.0.2"
react-refresh "^0.4.0"
-metro-react-native-babel-transformer@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.76.7.tgz#ccc7c25b49ee8a1860aafdbf48bfa5441d206f8f"
- integrity sha512-W6lW3J7y/05ph3c2p3KKJNhH0IdyxdOCbQ5it7aM2MAl0SM4wgKjaV6EYv9b3rHklpV6K3qMH37UKVcjMooWiA==
+metro-react-native-babel-transformer@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.76.8.tgz#c3a98e1f4cd5faf1e21eba8e004b94a90c4db69b"
+ integrity sha512-3h+LfS1WG1PAzhq8QF0kfXjxuXetbY/lgz8vYMQhgrMMp17WM1DNJD0gjx8tOGYbpbBC1qesJ45KMS4o5TA73A==
dependencies:
"@babel/core" "^7.20.0"
babel-preset-fbjs "^3.4.0"
hermes-parser "0.12.0"
- metro-react-native-babel-preset "0.76.7"
+ metro-react-native-babel-preset "0.76.8"
nullthrows "^1.1.1"
-metro-resolver@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.76.7.tgz#f00ebead64e451c060f30926ecbf4f797588df52"
- integrity sha512-pC0Wgq29HHIHrwz23xxiNgylhI8Rq1V01kQaJ9Kz11zWrIdlrH0ZdnJ7GC6qA0ErROG+cXmJ0rJb8/SW1Zp2IA==
-
-metro-runtime@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-runtime/-/metro-runtime-0.76.7.tgz#4d75f2dbbcd19a4f01e0d89494e140b0ba8247e4"
- integrity sha512-MuWHubQHymUWBpZLwuKZQgA/qbb35WnDAKPo83rk7JRLIFPvzXSvFaC18voPuzJBt1V98lKQIonh6MiC9gd8Ug==
- dependencies:
- "@babel/runtime" "^7.0.0"
- react-refresh "^0.4.0"
+metro-resolver@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-resolver/-/metro-resolver-0.76.8.tgz#0862755b9b84e26853978322464fb37c6fdad76d"
+ integrity sha512-KccOqc10vrzS7ZhG2NSnL2dh3uVydarB7nOhjreQ7C4zyWuiW9XpLC4h47KtGQv3Rnv/NDLJYeDqaJ4/+140HQ==
metro-runtime@0.76.8:
version "0.76.8"
@@ -5956,20 +5906,6 @@ metro-runtime@0.76.8:
"@babel/runtime" "^7.0.0"
react-refresh "^0.4.0"
-metro-source-map@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-source-map/-/metro-source-map-0.76.7.tgz#9a4aa3a35e1e8ffde9a74cd7ab5f49d9d4a4da14"
- integrity sha512-Prhx7PeRV1LuogT0Kn5VjCuFu9fVD68eefntdWabrksmNY6mXK8pRqzvNJOhTojh6nek+RxBzZeD6MIOOyXS6w==
- dependencies:
- "@babel/traverse" "^7.20.0"
- "@babel/types" "^7.20.0"
- invariant "^2.2.4"
- metro-symbolicate "0.76.7"
- nullthrows "^1.1.1"
- ob1 "0.76.7"
- source-map "^0.5.6"
- vlq "^1.0.0"
-
metro-source-map@0.76.8:
version "0.76.8"
resolved "https://registry.yarnpkg.com/metro-source-map/-/metro-source-map-0.76.8.tgz#f085800152a6ba0b41ca26833874d31ec36c5a53"
@@ -5984,18 +5920,6 @@ metro-source-map@0.76.8:
source-map "^0.5.6"
vlq "^1.0.0"
-metro-symbolicate@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-symbolicate/-/metro-symbolicate-0.76.7.tgz#1720e6b4ce5676935d7a8a440f25d3f16638e87a"
- integrity sha512-p0zWEME5qLSL1bJb93iq+zt5fz3sfVn9xFYzca1TJIpY5MommEaS64Va87lp56O0sfEIvh4307Oaf/ZzRjuLiQ==
- dependencies:
- invariant "^2.2.4"
- metro-source-map "0.76.7"
- nullthrows "^1.1.1"
- source-map "^0.5.6"
- through2 "^2.0.1"
- vlq "^1.0.0"
-
metro-symbolicate@0.76.8:
version "0.76.8"
resolved "https://registry.yarnpkg.com/metro-symbolicate/-/metro-symbolicate-0.76.8.tgz#f102ac1a306d51597ecc8fdf961c0a88bddbca03"
@@ -6008,10 +5932,10 @@ metro-symbolicate@0.76.8:
through2 "^2.0.1"
vlq "^1.0.0"
-metro-transform-plugins@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-transform-plugins/-/metro-transform-plugins-0.76.7.tgz#5d5f75371706fbf5166288e43ffd36b5e5bd05bc"
- integrity sha512-iSmnjVApbdivjuzb88Orb0JHvcEt5veVyFAzxiS5h0QB+zV79w6JCSqZlHCrbNOkOKBED//LqtKbFVakxllnNg==
+metro-transform-plugins@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-transform-plugins/-/metro-transform-plugins-0.76.8.tgz#d77c28a6547a8e3b72250f740fcfbd7f5408f8ba"
+ integrity sha512-PlkGTQNqS51Bx4vuufSQCdSn2R2rt7korzngo+b5GCkeX5pjinPjnO2kNhQ8l+5bO0iUD/WZ9nsM2PGGKIkWFA==
dependencies:
"@babel/core" "^7.20.0"
"@babel/generator" "^7.20.0"
@@ -6019,28 +5943,28 @@ metro-transform-plugins@0.76.7:
"@babel/traverse" "^7.20.0"
nullthrows "^1.1.1"
-metro-transform-worker@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro-transform-worker/-/metro-transform-worker-0.76.7.tgz#b842d5a542f1806cca401633fc002559b3e3d668"
- integrity sha512-cGvELqFMVk9XTC15CMVzrCzcO6sO1lURfcbgjuuPdzaWuD11eEyocvkTX0DPiRjsvgAmicz4XYxVzgYl3MykDw==
+metro-transform-worker@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro-transform-worker/-/metro-transform-worker-0.76.8.tgz#b9012a196cee205170d0c899b8b175b9305acdea"
+ integrity sha512-mE1fxVAnJKmwwJyDtThildxxos9+DGs9+vTrx2ktSFMEVTtXS/bIv2W6hux1pqivqAfyJpTeACXHk5u2DgGvIQ==
dependencies:
"@babel/core" "^7.20.0"
"@babel/generator" "^7.20.0"
"@babel/parser" "^7.20.0"
"@babel/types" "^7.20.0"
babel-preset-fbjs "^3.4.0"
- metro "0.76.7"
- metro-babel-transformer "0.76.7"
- metro-cache "0.76.7"
- metro-cache-key "0.76.7"
- metro-source-map "0.76.7"
- metro-transform-plugins "0.76.7"
+ metro "0.76.8"
+ metro-babel-transformer "0.76.8"
+ metro-cache "0.76.8"
+ metro-cache-key "0.76.8"
+ metro-source-map "0.76.8"
+ metro-transform-plugins "0.76.8"
nullthrows "^1.1.1"
-metro@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/metro/-/metro-0.76.7.tgz#4885917ad28738c7d1e556630e0155f687336230"
- integrity sha512-67ZGwDeumEPnrHI+pEDSKH2cx+C81Gx8Mn5qOtmGUPm/Up9Y4I1H2dJZ5n17MWzejNo0XAvPh0QL0CrlJEODVQ==
+metro@0.76.8:
+ version "0.76.8"
+ resolved "https://registry.npmjs.org/metro/-/metro-0.76.8.tgz#ba526808b99977ca3f9ac5a7432fd02a340d13a6"
+ integrity sha512-oQA3gLzrrYv3qKtuWArMgHPbHu8odZOD9AoavrqSFllkPgOtmkBvNNDLCELqv5SjBfqjISNffypg+5UGG3y0pg==
dependencies:
"@babel/code-frame" "^7.0.0"
"@babel/core" "^7.20.0"
@@ -6064,22 +5988,22 @@ metro@0.76.7:
jest-worker "^27.2.0"
jsc-safe-url "^0.2.2"
lodash.throttle "^4.1.1"
- metro-babel-transformer "0.76.7"
- metro-cache "0.76.7"
- metro-cache-key "0.76.7"
- metro-config "0.76.7"
- metro-core "0.76.7"
- metro-file-map "0.76.7"
- metro-inspector-proxy "0.76.7"
- metro-minify-terser "0.76.7"
- metro-minify-uglify "0.76.7"
- metro-react-native-babel-preset "0.76.7"
- metro-resolver "0.76.7"
- metro-runtime "0.76.7"
- metro-source-map "0.76.7"
- metro-symbolicate "0.76.7"
- metro-transform-plugins "0.76.7"
- metro-transform-worker "0.76.7"
+ metro-babel-transformer "0.76.8"
+ metro-cache "0.76.8"
+ metro-cache-key "0.76.8"
+ metro-config "0.76.8"
+ metro-core "0.76.8"
+ metro-file-map "0.76.8"
+ metro-inspector-proxy "0.76.8"
+ metro-minify-terser "0.76.8"
+ metro-minify-uglify "0.76.8"
+ metro-react-native-babel-preset "0.76.8"
+ metro-resolver "0.76.8"
+ metro-runtime "0.76.8"
+ metro-source-map "0.76.8"
+ metro-symbolicate "0.76.8"
+ metro-transform-plugins "0.76.8"
+ metro-transform-worker "0.76.8"
mime-types "^2.1.27"
node-fetch "^2.2.0"
nullthrows "^1.1.1"
@@ -6399,11 +6323,6 @@ nullthrows@^1.1.1:
resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1"
integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==
-ob1@0.76.7:
- version "0.76.7"
- resolved "https://registry.yarnpkg.com/ob1/-/ob1-0.76.7.tgz#95b68fadafd47e7a6a0ad64cf80f3140dd6d1124"
- integrity sha512-BQdRtxxoUNfSoZxqeBGOyuT9nEYSn18xZHwGMb0mMVpn2NBcYbnyKY4BK2LIHRgw33CBGlUmE+KMaNvyTpLLtQ==
-
ob1@0.76.8:
version "0.76.8"
resolved "https://registry.yarnpkg.com/ob1/-/ob1-0.76.8.tgz#ac4c459465b1c0e2c29aaa527e09fc463d3ffec8"
@@ -7227,17 +7146,17 @@ react-native-web@~0.19.8:
postcss-value-parser "^4.2.0"
styleq "^0.1.3"
-react-native@0.72.4:
- version "0.72.4"
- resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.72.4.tgz#97b57e22e4d7657eaf4d1f62a678511fcf9bdda7"
- integrity sha512-+vrObi0wZR+NeqL09KihAAdVlQ9IdplwznJWtYrjnQ4UbCW6rkzZJebRsugwUneSOKNFaHFEo1uKU89HsgtYBg==
+react-native@0.72.6:
+ version "0.72.6"
+ resolved "https://registry.npmjs.org/react-native/-/react-native-0.72.6.tgz#9f8d090694907e2f83af22e115cc0e4a3d5fa626"
+ integrity sha512-RafPY2gM7mcrFySS8TL8x+TIO3q7oAlHpzEmC7Im6pmXni6n1AuufGaVh0Narbr1daxstw7yW7T9BKW5dpVc2A==
dependencies:
"@jest/create-cache-key-function" "^29.2.1"
- "@react-native-community/cli" "11.3.6"
- "@react-native-community/cli-platform-android" "11.3.6"
- "@react-native-community/cli-platform-ios" "11.3.6"
+ "@react-native-community/cli" "11.3.7"
+ "@react-native-community/cli-platform-android" "11.3.7"
+ "@react-native-community/cli-platform-ios" "11.3.7"
"@react-native/assets-registry" "^0.72.0"
- "@react-native/codegen" "^0.72.6"
+ "@react-native/codegen" "^0.72.7"
"@react-native/gradle-plugin" "^0.72.11"
"@react-native/js-polyfills" "^0.72.1"
"@react-native/normalize-colors" "^0.72.0"
diff --git a/src/Date/DatePickerInput.shared.tsx b/src/Date/DatePickerInput.shared.tsx
index 61e1af2b..44b71df0 100644
--- a/src/Date/DatePickerInput.shared.tsx
+++ b/src/Date/DatePickerInput.shared.tsx
@@ -26,11 +26,7 @@ export type DatePickerInputProps = {
inputEnabled?: boolean
disableStatusBarPadding?: boolean
animationType?: 'slide' | 'fade' | 'none'
- presentationStyle?:
- | 'fullScreen'
- | 'pageSheet'
- | 'formSheet'
- | 'overFullScreen'
+ presentationStyle?: 'pageSheet' | 'overFullScreen'
} & Omit<
React.ComponentProps,
'value' | 'onChange' | 'onChangeText' | 'inputMode'
diff --git a/src/Date/DatePickerInput.tsx b/src/Date/DatePickerInput.tsx
index 9005cc94..c056db3d 100644
--- a/src/Date/DatePickerInput.tsx
+++ b/src/Date/DatePickerInput.tsx
@@ -12,7 +12,7 @@ function DatePickerInput(
withModal = true,
calendarIcon = 'calendar',
animationType = 'slide',
- presentationStyle = 'fullScreen',
+ presentationStyle = 'overFullScreen',
...rest
}: DatePickerInputProps,
ref: any
@@ -73,7 +73,7 @@ function DatePickerInput(
validRange={validRange}
saveLabel={saveLabel}
saveLabelDisabled={saveLabelDisabled ?? false}
- uppercase={uppercase ?? true}
+ uppercase={uppercase}
startYear={startYear ?? 1800}
endYear={endYear ?? 2200}
inputEnabled={inputEnabled}
diff --git a/src/Date/DatePickerModal.tsx b/src/Date/DatePickerModal.tsx
index c65a8311..ddf2fb29 100644
--- a/src/Date/DatePickerModal.tsx
+++ b/src/Date/DatePickerModal.tsx
@@ -13,8 +13,6 @@ import DatePickerModalContent, {
DatePickerModalContentRangeProps,
DatePickerModalContentSingleProps,
} from './DatePickerModalContent'
-import { useSafeAreaInsets } from 'react-native-safe-area-context'
-import { useHeaderBackgroundColor } from '../utils'
interface DatePickerModalProps {
visible: boolean
@@ -22,11 +20,7 @@ interface DatePickerModalProps {
disableStatusBar?: boolean
disableStatusBarPadding?: boolean
inputEnabled?: boolean
- presentationStyle?:
- | 'fullScreen'
- | 'pageSheet'
- | 'formSheet'
- | 'overFullScreen'
+ presentationStyle?: 'pageSheet' | 'overFullScreen'
}
export interface DatePickerModalSingleProps
@@ -56,6 +50,7 @@ export function DatePickerModal(
disableStatusBarPadding,
inputEnabled,
presentationStyle,
+ statusBarOnTopOfBackdrop,
...rest
} = props
const animationTypeCalculated =
@@ -65,64 +60,48 @@ export function DatePickerModal(
default: 'slide',
})
- const isTransparent =
- presentationStyle === 'pageSheet' || presentationStyle === 'fullScreen'
- ? false
- : true
- const headerBackgroundColor = useHeaderBackgroundColor()
- const insets = useSafeAreaInsets()
+ const isPageSheet = presentationStyle === 'pageSheet' && Platform.OS === 'ios'
return (
- <>
-
-
-
+
+
+
+
650 ? styles.modalContentBig : null,
+ ]}
>
- 650 ? styles.modalContentBig : null,
- ]}
- >
- {disableStatusBarPadding ? null : (
-
- )}
-
-
+
- >
+
)
diff --git a/src/Date/DatePickerModalContent.tsx b/src/Date/DatePickerModalContent.tsx
index b422b410..08b2877f 100644
--- a/src/Date/DatePickerModalContent.tsx
+++ b/src/Date/DatePickerModalContent.tsx
@@ -18,6 +18,7 @@ import DatePickerModalContentHeader, {
import CalendarEdit from './CalendarEdit'
import DatePickerModalHeaderBackground from './DatePickerModalHeaderBackground'
import { useTheme } from 'react-native-paper'
+import DatePickerModalStatusBar from './DatePickerModalStatusBar'
export type LocalState = {
startDate: CalendarDate
@@ -30,10 +31,14 @@ interface DatePickerModalContentBaseProps {
inputFormat?: string
locale: string
onDismiss: () => any
- disableSafeTop?: boolean
+
saveLabelDisabled?: boolean
uppercase?: boolean
inputEnabled?: boolean
+
+ disableSafeTop?: boolean
+ disableStatusBar?: boolean
+ statusBarOnTopOfBackdrop?: boolean
}
export interface DatePickerModalContentRangeProps
@@ -80,12 +85,14 @@ export function DatePickerModalContent(
onConfirm,
onDismiss,
disableSafeTop,
+ disableStatusBar,
disableWeekDays,
locale,
validRange,
dateMode,
startYear,
endYear,
+ statusBarOnTopOfBackdrop,
} = props
const anyProps = props as any
@@ -140,9 +147,15 @@ export function DatePickerModalContent(
const theme = useTheme()
const defaultUppercase = !theme.isV3
+
return (
<>
+
-
-
-
-
-
-
+ <>
+
+
+
+
+
+
+
+ >
)
}
diff --git a/src/Date/DatePickerModalStatusBar.tsx b/src/Date/DatePickerModalStatusBar.tsx
new file mode 100644
index 00000000..c44d3394
--- /dev/null
+++ b/src/Date/DatePickerModalStatusBar.tsx
@@ -0,0 +1,54 @@
+import * as React from 'react'
+import { useSafeAreaInsets } from 'react-native-safe-area-context'
+import { useHeaderBackgroundColor } from '../utils'
+import Color from 'color'
+import { Platform, Animated, StatusBar, StatusBarStyle } from 'react-native'
+
+function DatePickerModalStatusBar({
+ disableSafeTop,
+ disableStatusBar,
+ statusBarOnTopOfBackdrop,
+}: {
+ disableSafeTop: boolean
+ disableStatusBar: boolean
+ statusBarOnTopOfBackdrop: boolean
+}) {
+ const insets = useSafeAreaInsets()
+ const headerBackgroundColor = useHeaderBackgroundColor()
+ const onDarkBackground =
+ Color(headerBackgroundColor).isDark() || statusBarOnTopOfBackdrop
+ const statusBarTheme: StatusBarStyle = onDarkBackground
+ ? 'light-content'
+ : 'dark-content'
+ const statusBarBackground = statusBarOnTopOfBackdrop
+ ? 'transparent'
+ : Platform.select({
+ android: headerBackgroundColor,
+ ios: headerBackgroundColor,
+ web: headerBackgroundColor,
+ })
+
+ return (
+ <>
+ {!disableStatusBar && (
+
+ )}
+ {!disableSafeTop && !statusBarOnTopOfBackdrop && (
+
+ )}
+ >
+ )
+}
+
+export default React.memo(DatePickerModalStatusBar)