diff --git a/examples/Rn069/ios/Podfile.lock b/examples/Rn069/ios/Podfile.lock index c5be7815..fb00f37e 100644 --- a/examples/Rn069/ios/Podfile.lock +++ b/examples/Rn069/ios/Podfile.lock @@ -284,7 +284,7 @@ PODS: - React-jsinspector (0.69.0) - React-logger (0.69.0): - glog - - react-native-date-picker (4.2.6): + - react-native-date-picker (4.2.13): - React-Core - React-perflogger (0.69.0) - React-RCTActionSheet (0.69.0): @@ -527,7 +527,7 @@ SPEC CHECKSUMS: React: 8a8fc19196a41141ecb5bde33c97091cdc25ccd8 React-bridging: 543858c1fc01ed8264585c5a2646305d20225840 React-callinvoker: cc62aa541f261cee6f990f870dbf6aff38f97eef - React-Codegen: a80f7ec979174e44dcaecc9d5639ac84a7077a71 + React-Codegen: b3a302c8f6216332fe9d64be3f6eba00154a0c41 React-Core: 7faa8679c6f38b5462a71d55b399483f46365e44 React-CoreModules: 3a51e8d50928a8593ea44606c00ffa60db95222f React-cxxreact: 51a2239091bc13a3c0b5b1cb445b1585a483df2d @@ -535,7 +535,7 @@ SPEC CHECKSUMS: React-jsiexecutor: b2a049b9f156342f6037ccb0c8acf69f923d3089 React-jsinspector: 6aced68014b275b7abd073c9598b0affd0e1669c React-logger: bcf33ce10afa135158c72635e621ddb94126c610 - react-native-date-picker: 93e43b3084cea595b4d68b1405d6d99849663bd6 + react-native-date-picker: 04e866ba4e7857f83abd504ad42e787f0f02ae00 React-perflogger: aa48956d87bae67fc847acc196fae97928b96cd3 React-RCTActionSheet: 4eaab2b885130ce9a88c8fdac5f1992315da80f6 React-RCTAnimation: 5e91e3ceb988838fa43615bb602181be30d2b26e diff --git a/examples/Rn071/.bundle/config b/examples/Rn071/.bundle/config new file mode 100644 index 00000000..848943bb --- /dev/null +++ b/examples/Rn071/.bundle/config @@ -0,0 +1,2 @@ +BUNDLE_PATH: "vendor/bundle" +BUNDLE_FORCE_RUBY_PLATFORM: 1 diff --git a/examples/Rn071/.eslintrc.js b/examples/Rn071/.eslintrc.js new file mode 100644 index 00000000..40c6dcd0 --- /dev/null +++ b/examples/Rn071/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: '@react-native-community', +}; diff --git a/examples/Rn071/.gitignore b/examples/Rn071/.gitignore new file mode 100644 index 00000000..16f8c307 --- /dev/null +++ b/examples/Rn071/.gitignore @@ -0,0 +1,63 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +ios/.xcode.env.local + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof +.cxx/ +*.keystore +!debug.keystore + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +**/fastlane/report.xml +**/fastlane/Preview.html +**/fastlane/screenshots +**/fastlane/test_output + +# Bundle artifact +*.jsbundle + +# Ruby / CocoaPods +/ios/Pods/ +/vendor/bundle/ + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check* diff --git a/examples/Rn071/.node-version b/examples/Rn071/.node-version new file mode 100644 index 00000000..3c032078 --- /dev/null +++ b/examples/Rn071/.node-version @@ -0,0 +1 @@ +18 diff --git a/examples/Rn071/.prettierrc.js b/examples/Rn071/.prettierrc.js new file mode 100644 index 00000000..2b540746 --- /dev/null +++ b/examples/Rn071/.prettierrc.js @@ -0,0 +1,7 @@ +module.exports = { + arrowParens: 'avoid', + bracketSameLine: true, + bracketSpacing: false, + singleQuote: true, + trailingComma: 'all', +}; diff --git a/examples/Rn071/.watchmanconfig b/examples/Rn071/.watchmanconfig new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/examples/Rn071/.watchmanconfig @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/examples/Rn071/App.tsx b/examples/Rn071/App.tsx new file mode 100644 index 00000000..b472daf5 --- /dev/null +++ b/examples/Rn071/App.tsx @@ -0,0 +1,131 @@ +/** + * Sample React Native App + * https://github.com/facebook/react-native + * + * @format + */ + +import type {PropsWithChildren} from 'react'; +import React, {useState} from 'react'; +import { + Button, + SafeAreaView, + ScrollView, + StatusBar, + StyleSheet, + Text, + useColorScheme, + View, +} from 'react-native'; + +import DatePicker from 'react-native-date-picker'; +import { + Colors, + Header, + LearnMoreLinks, +} from 'react-native/Libraries/NewAppScreen'; + +type SectionProps = PropsWithChildren<{ + title: string; +}>; + +function Section({children, title}: SectionProps): JSX.Element { + const isDarkMode = useColorScheme() === 'dark'; + const [date, setDate] = useState(new Date()); + const [open, setOpen] = useState(false); + return ( + +