Skip to content

Commit c2d1db6

Browse files
committed
fix: fix input bug on web + remove expo-router as example did not have access to library code anymore
1 parent c8b6900 commit c2d1db6

File tree

85 files changed

+908
-1172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+908
-1172
lines changed

docusaurus/src/components/AppStoreIcon.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import React from 'react';
2-
31
type Props = {
4-
color: string;
5-
};
2+
color: string
3+
}
64

75
const AppStoreIcon = ({ color }: Props) => (
86
<svg width="24px" height="23px" viewBox="-4 0 20 23">
@@ -24,6 +22,6 @@ const AppStoreIcon = ({ color }: Props) => (
2422
</g>
2523
</g>
2624
</svg>
27-
);
25+
)
2826

29-
export default AppStoreIcon;
27+
export default AppStoreIcon
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import React from 'react';
2-
31
type Props = {
4-
color: string;
5-
};
2+
color: string
3+
}
64

75
const GithubIcon = ({ color }: Props) => (
86
<svg width="24px" height="24px" viewBox="0 0 24 24">
@@ -11,6 +9,6 @@ const GithubIcon = ({ color }: Props) => (
119
d="M12 .5C5.37.5 0 5.78 0 12.292c0 5.211 3.438 9.63 8.205 11.188.6.111.82-.254.82-.567 0-.28-.01-1.022-.015-2.005-3.338.711-4.042-1.582-4.042-1.582-.546-1.361-1.335-1.725-1.335-1.725-1.087-.731.084-.716.084-.716 1.205.082 1.838 1.215 1.838 1.215 1.07 1.803 2.809 1.282 3.495.981.108-.763.417-1.282.76-1.577-2.665-.295-5.466-1.309-5.466-5.827 0-1.287.465-2.339 1.235-3.164-.135-.298-.54-1.497.105-3.121 0 0 1.005-.316 3.3 1.209.96-.262 1.98-.392 3-.398 1.02.006 2.04.136 3 .398 2.28-1.525 3.285-1.209 3.285-1.209.645 1.624.24 2.823.12 3.121.765.825 1.23 1.877 1.23 3.164 0 4.53-2.805 5.527-5.475 5.817.42.354.81 1.077.81 2.182 0 1.578-.015 2.846-.015 3.229 0 .309.21.678.825.56C20.565 21.917 24 17.495 24 12.292 24 5.78 18.627.5 12 .5z"
1210
/>
1311
</svg>
14-
);
12+
)
1513

16-
export default GithubIcon;
14+
export default GithubIcon

docusaurus/src/components/GooglePlayIcon.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import React from 'react';
2-
31
type Props = {
4-
color: string;
5-
};
2+
color: string
3+
}
64

75
const GooglePlayIcon = ({ color }: Props) => (
86
<svg width="20px" height="23px" viewBox="0 0 20 23">
@@ -21,6 +19,6 @@ const GooglePlayIcon = ({ color }: Props) => (
2119
</g>
2220
</g>
2321
</svg>
24-
);
22+
)
2523

26-
export default GooglePlayIcon;
24+
export default GooglePlayIcon

docusaurus/src/components/HomepageFeatures/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import clsx from 'clsx'
32
import styles from './styles.module.css'
43

docusaurus/src/components/Showcase.tsx

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
import React from 'react';
1+
import color from 'color'
22

3-
import color from 'color';
4-
5-
import AppStoreIcon from './AppStoreIcon';
6-
import GithubIcon from './GithubIcon';
7-
import GooglePlayIcon from './GooglePlayIcon';
3+
import AppStoreIcon from './AppStoreIcon'
4+
import GithubIcon from './GithubIcon'
5+
import GooglePlayIcon from './GooglePlayIcon'
86

97
type Data = {
10-
color: string;
11-
name: string;
12-
image: string;
13-
android?: string;
14-
ios?: string;
15-
github?: string;
16-
};
8+
color: string
9+
name: string
10+
image: string
11+
android?: string
12+
ios?: string
13+
github?: string
14+
}
1715

1816
const data: Data[] = [
1917
{
@@ -24,15 +22,15 @@ const data: Data[] = [
2422
'https://play.google.com/store/apps/details?id=com.bitzllc.bluebird',
2523
ios: 'https://apps.apple.com/us/app/bluebirding/id1553837668',
2624
},
27-
];
25+
]
2826

29-
const getOpacity = (item?: string) => (item ? 1 : 0.4);
27+
const getOpacity = (item?: string) => (item ? 1 : 0.4)
3028

3129
export default function Showcase() {
3230
return (
3331
<div className="showcase-gallery">
3432
{data.map((item) => {
35-
const tintColor = color(item.color).isLight() ? '#000000' : '#FFFFFF';
33+
const tintColor = color(item.color).isLight() ? '#000000' : '#FFFFFF'
3634
return (
3735
<div key={item.image}>
3836
<div className="showcase-image-container">
@@ -80,8 +78,8 @@ export default function Showcase() {
8078
</div>
8179
</div>
8280
</div>
83-
);
81+
)
8482
})}
8583
</div>
86-
);
87-
}
84+
)
85+
}

docusaurus/src/pages/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import clsx from 'clsx'
32
import Link from '@docusaurus/Link'
43
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'

example/.gitignore

Lines changed: 0 additions & 73 deletions
This file was deleted.

example/app.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
11
{
2+
"name": "react-native-paper-dates-example",
3+
"displayName": "PaperDates Example",
24
"expo": {
35
"name": "react-native-paper-dates-example",
46
"slug": "react-native-paper-dates-example",
57
"description": "Example app for react-native-paper-dates",
8+
"privacy": "public",
69
"version": "1.0.0",
7-
"scheme": "react-native-paper-dates",
10+
"platforms": [
11+
"ios",
12+
"android",
13+
"web"
14+
],
815
"ios": {
916
"supportsTablet": true
1017
},
1118
"androidStatusBar": {
1219
"translucent": true
1320
},
1421
"web": {
15-
"bundler": "metro",
16-
"favicon": "./assets/images/favicon.png",
22+
"favicon": "./favicon.png",
1723
"name": "React Native Paper Dates",
1824
"shortName": "PaperDates",
19-
"description": "Example app for react-native-paper-dates",
20-
"output": "static"
25+
"description": "Example app for react-native-paper-dates"
2126
},
2227
"assetBundlePatterns": [
2328
"**/*"
2429
],
25-
"userInterfaceStyle": "automatic",
26-
"plugins": [
27-
"expo-router"
28-
],
29-
"newArchEnabled": true,
30-
"experiments": {
31-
"typedRoutes": true
32-
}
30+
"userInterfaceStyle": "automatic"
3331
}
3432
}

example/app/+html.tsx

Lines changed: 0 additions & 43 deletions
This file was deleted.

example/app/_layout.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)