-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #413 from web-ridge/expo-51
Expo 51
- Loading branch information
Showing
29 changed files
with
3,847 additions
and
3,991 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# OSX | ||
# | ||
.DS_Store | ||
|
||
# XDE | ||
.expo/ | ||
/example/dist | ||
|
||
# VSCode | ||
.vscode/ | ||
jsconfig.json | ||
|
||
# Xcode | ||
# | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
project.xcworkspace | ||
|
||
# Android/IJ | ||
# | ||
.idea | ||
.gradle | ||
local.properties | ||
android.iml | ||
|
||
# Cocoapods | ||
# | ||
example/ios/Pods | ||
|
||
# node.js | ||
# | ||
node_modules/ | ||
npm-debug.log | ||
yarn-debug.log | ||
yarn-error.log | ||
|
||
# BUCK | ||
buck-out/ | ||
\.buckd/ | ||
android/app/libs | ||
android/keystores/debug.keystore | ||
|
||
# Expo | ||
.expo/* | ||
|
||
# generated by bob | ||
lib/ | ||
|
||
.env | ||
web-build | ||
|
||
# Code Coverage | ||
/coverage/ | ||
|
||
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb | ||
# The following patterns were generated by expo-cli | ||
|
||
expo-env.d.ts | ||
# @end expo-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
{ | ||
"name": "react-native-paper-dates-example", | ||
"displayName": "PaperDates Example", | ||
"expo": { | ||
"name": "react-native-paper-dates-example", | ||
"slug": "react-native-paper-dates-example", | ||
"description": "Example app for react-native-paper-dates", | ||
"privacy": "public", | ||
"version": "1.0.0", | ||
"platforms": [ | ||
"ios", | ||
"android", | ||
"web" | ||
], | ||
"privacy": "public", | ||
"scheme": "react-native-paper-dates", | ||
"ios": { | ||
"supportsTablet": true | ||
}, | ||
"androidStatusBar": { | ||
"translucent": true | ||
}, | ||
"web": { | ||
"favicon": "./favicon.png", | ||
"bundler": "metro", | ||
"favicon": "./assets/images/favicon.png", | ||
"name": "React Native Paper Dates", | ||
"shortName": "PaperDates", | ||
"description": "Example app for react-native-paper-dates" | ||
"description": "Example app for react-native-paper-dates", | ||
"output": "static" | ||
}, | ||
"assetBundlePatterns": [ | ||
"**/*" | ||
], | ||
"userInterfaceStyle": "automatic" | ||
"userInterfaceStyle": "automatic", | ||
"plugins": [ | ||
"expo-router" | ||
], | ||
"experiments": { | ||
"typedRoutes": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { ScrollViewStyleReset } from 'expo-router/html' | ||
import React from 'react' | ||
import { type PropsWithChildren } from 'react' | ||
|
||
/** | ||
* This file is web-only and used to configure the root HTML for every web page during static rendering. | ||
* The contents of this function only run in Node.js environments and do not have access to the DOM or browser APIs. | ||
*/ | ||
export default function Root({ children }: PropsWithChildren) { | ||
return ( | ||
<html lang="en"> | ||
<head> | ||
<meta charSet="utf-8" /> | ||
<meta httpEquiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
|
||
{/* | ||
Disable body scrolling on web. This makes ScrollView components work closer to how they do on native. | ||
However, body scrolling is often nice to have for mobile web. If you want to enable it, remove this line. | ||
*/} | ||
<ScrollViewStyleReset /> | ||
|
||
{/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */} | ||
<style dangerouslySetInnerHTML={{ __html: responsiveBackground }} /> | ||
{/* Add any additional <head> elements that you want globally available on web... */} | ||
</head> | ||
<body>{children}</body> | ||
</html> | ||
) | ||
} | ||
|
||
const responsiveBackground = ` | ||
body { | ||
background-color: #fff; | ||
} | ||
@media (prefers-color-scheme: dark) { | ||
body { | ||
background-color: #000; | ||
} | ||
}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Stack } from 'expo-router' | ||
|
||
import { PaperProvider } from 'react-native-paper' | ||
import React from 'react' | ||
|
||
export default function RootLayout() { | ||
return ( | ||
<PaperProvider> | ||
<Stack> | ||
<Stack.Screen name="index" options={{ headerShown: false }} /> | ||
</Stack> | ||
</PaperProvider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,7 @@ | ||
const path = require('path') | ||
const pak = require('../package.json') | ||
|
||
module.exports = function (api) { | ||
api.cache(true) | ||
|
||
return { | ||
presets: ['babel-preset-expo'], | ||
plugins: [ | ||
[ | ||
'module-resolver', | ||
{ | ||
extensions: ['.tsx', '.ts', '.js', '.json'], | ||
alias: { | ||
// For development, we want to alias the library to the source | ||
[pak.name]: path.join(__dirname, '..', pak.source), | ||
'react-native-vector-icons': '@expo/vector-icons', | ||
}, | ||
}, | ||
], | ||
], | ||
plugins: [['react-native-paper/babel']], | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.