Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
},
"dependencies": {
"add": "^2.0.6",
"expo": "^47.0.0",
"expo": "^47.0.13",
"expo-splash-screen": "~0.17.5",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
"react-native-paper": "^5.0.2",
"react-native-web": "~0.18.7"
"react-native-paper": "^5.2.0",
"react-native-web": "~0.18.12"
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@babel/runtime": "^7.9.6",
"@babel/core": "^7.21.0",
"@babel/runtime": "^7.21.0",
"babel-plugin-module-resolver": "^4.0.0",
"babel-preset-expo": "~9.2.1",
"expo-cli": "^6.0.5"
"expo-cli": "^6.3.2"
}
}
4,651 changes: 1,619 additions & 3,032 deletions example/yarn.lock

Large diffs are not rendered by default.

49 changes: 25 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,37 +50,37 @@
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.0.3",
"@react-native-community/eslint-config": "^3.1.0",
"@release-it/conventional-changelog": "^5.1.0",
"@testing-library/jest-native": "^5.3.3",
"@testing-library/react-native": "^11.5.0",
"@commitlint/config-conventional": "^17.4.4",
"@react-native-community/eslint-config": "^3.2.0",
"@release-it/conventional-changelog": "^5.1.1",
"@testing-library/jest-native": "^5.4.2",
"@testing-library/react-native": "^11.5.2",
"@types/color": "^3.0.3",
"@types/jest": "^29.2.4",
"@types/react": "^18.0.26",
"@types/react-native": "^0.70.8",
"@types/react-native-vector-icons": "^6.4.12",
"babel-loader": "^8.2.5",
"commitlint": "^17.0.3",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"@types/jest": "^29.4.0",
"@types/react": "^18.0.28",
"@types/react-native": "^0.70.11",
"@types/react-native-vector-icons": "^6.4.13",
"babel-loader": "^8.3.0",
"commitlint": "^17.4.4",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"expo-cli": "^6.0.8",
"husky": "^8.0.1",
"jest": "^29.0.0",
"expo-cli": "^6.3.2",
"husky": "^8.0.3",
"jest": "^29.4.3",
"pod-install": "^0.1.38",
"prettier": "^2.7.1",
"prettier": "^2.8.4",
"react": "^18.2.0",
"react-native": "^0.70.6",
"react-native": "^0.70.7",
"react-native-builder-bob": "^0.18.3",
"react-native-paper": "^5.0.2",
"react-native-safe-area-context": "^4.4.1",
"react-native-paper": "^5.2.0",
"react-native-safe-area-context": "^4.5.0",
"react-native-vector-icons": "^9.2.0",
"release-it": "^15.4.0",
"typescript": "^4.9.4",
"release-it": "^15.7.0",
"typescript": "^4.9.5",
"react-test-renderer": "^18.2.0",
"@types/react-test-renderer": "^18.0.0",
"caniuse-lite": "^1.0.30001383"
"caniuse-lite": "^1.0.30001458"
},
"peerDependencies": {
"react": "*",
Expand Down Expand Up @@ -141,7 +141,8 @@
"lib/",
"example/node_modules",
"example/web-build",
"docusaurus"
"docusaurus",
"coverage"
],
"prettier": {
"quoteProps": "consistent",
Expand Down
1 change: 1 addition & 0 deletions src/Date/Swiper.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ function SwiperInner({
? new Array(visibleIndexes.length).fill(undefined).map((_, vi) => (
<View
key={vi}
// eslint-disable-next-line react-native/no-inline-styles
style={{
top: isHorizontal
? 0
Expand Down
4 changes: 3 additions & 1 deletion src/Date/Swiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ function VerticalScroller({
const [visibleIndexes, setVisibleIndexes] = React.useState<number[]>(
visibleArray(initialIndex)
)
// eslint-disable-next-line no-undef
const parentRef = React.useRef<HTMLDivElement | null>(null)

useIsomorphicLayoutEffect(() => {
Expand Down Expand Up @@ -132,6 +131,7 @@ function VerticalScroller({
return (
<div
ref={parentRef}
// eslint-disable-next-line react-native/no-inline-styles
style={{
height,
width,
Expand All @@ -140,6 +140,7 @@ function VerticalScroller({
onScroll={onScroll}
>
<div
// eslint-disable-next-line react-native/no-inline-styles
style={{
height: estimatedHeight * totalMonths,
position: 'relative',
Expand All @@ -148,6 +149,7 @@ function VerticalScroller({
{[0, 1, 2, 3, 4].map((vi) => (
<div
key={vi}
// eslint-disable-next-line react-native/no-inline-styles
style={{
willChange: 'transform',
transform: `translateY(${getVerticalMonthsOffset(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3663,7 +3663,6 @@ exports[`renders collapsed AnimatedCrossView 1`] = `
style={
[
{
"flexGrow": 1,
"margin": 0,
},
{
Expand Down Expand Up @@ -3691,6 +3690,7 @@ exports[`renders collapsed AnimatedCrossView 1`] = `
[
{},
],
undefined,
]
}
testID="text-input-flat"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ exports[`renders CalendarEdit 1`] = `
style={
[
{
"flexGrow": 1,
"margin": 0,
},
{
Expand Down Expand Up @@ -214,6 +213,7 @@ exports[`renders CalendarEdit 1`] = `
[
{},
],
undefined,
]
}
testID="text-input-flat"
Expand Down
26 changes: 20 additions & 6 deletions src/__tests__/Date/__snapshots__/DatePickerInput.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ exports[`renders DatePickerInput 1`] = `
style={
[
{
"flexGrow": 1,
"margin": 0,
},
{
Expand Down Expand Up @@ -207,6 +206,7 @@ exports[`renders DatePickerInput 1`] = `
[
{},
],
undefined,
]
}
testID="text-input-flat"
Expand All @@ -221,6 +221,8 @@ exports[`renders DatePickerInput 1`] = `
{
"alignSelf": undefined,
"bottom": undefined,
"end": undefined,
"flex": undefined,
"left": undefined,
"position": "absolute",
"right": 0,
Expand All @@ -231,14 +233,17 @@ exports[`renders DatePickerInput 1`] = `
},
"shadowOpacity": 0,
"shadowRadius": 0,
"start": undefined,
"top": undefined,
}
}
testID="icon-button-container-outer-layer"
>
<View
collapsable={false}
style={
{
"flex": undefined,
"shadowColor": "#000",
"shadowOffset": {
"height": 0,
Expand All @@ -248,6 +253,7 @@ exports[`renders DatePickerInput 1`] = `
"shadowRadius": 0,
}
}
testID="icon-button-container-inner-layer"
>
<View
collapsable={false}
Expand All @@ -258,13 +264,15 @@ exports[`renders DatePickerInput 1`] = `
"borderRadius": 20,
"borderWidth": 0,
"elevation": 0,
"flex": undefined,
"height": 40,
"margin": 6,
"overflow": "hidden",
"width": 40,
"zIndex": 10,
}
}
testID="icon-button-container"
>
<View
accessibilityComponentType="button"
Expand Down Expand Up @@ -302,13 +310,19 @@ exports[`renders DatePickerInput 1`] = `
"overflow": "hidden",
},
false,
{
"alignItems": "center",
"flexGrow": 1,
"justifyContent": "center",
},
[
{
"alignItems": "center",
"flexGrow": 1,
"justifyContent": "center",
},
{
"borderRadius": 20,
},
],
]
}
testID="icon-button"
>
<Text
accessibilityElementsHidden={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ exports[`renders DatePickerInput 1`] = `
style={
[
{
"flexGrow": 1,
"margin": 0,
},
{
Expand Down Expand Up @@ -206,6 +205,7 @@ exports[`renders DatePickerInput 1`] = `
[
{},
],
undefined,
]
}
testID="text-input-flat"
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/Time/__snapshots__/TimeInput.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ exports[`renders TimeInput 1`] = `
style={
[
{
"fontSize": 57,
"textAlign": "center",
"textAlignVertical": "center",
"width": 96,
Expand All @@ -31,6 +30,7 @@ exports[`renders TimeInput 1`] = `
"borderRadius": 8,
"borderWidth": 2,
"color": "rgba(33, 0, 93, 1)",
"fontSize": 57,
"height": 80,
},
]
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/Time/__snapshots__/TimeInputs.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ exports[`renders TimeInputs 1`] = `
style={
[
{
"fontSize": 57,
"textAlign": "center",
"textAlignVertical": "center",
"width": 96,
Expand All @@ -54,6 +53,7 @@ exports[`renders TimeInputs 1`] = `
"borderRadius": 8,
"borderWidth": 0,
"color": "rgba(28, 27, 31, 1)",
"fontSize": 57,
"height": 72,
},
]
Expand Down Expand Up @@ -178,7 +178,6 @@ exports[`renders TimeInputs 1`] = `
style={
[
{
"fontSize": 57,
"textAlign": "center",
"textAlignVertical": "center",
"width": 96,
Expand All @@ -189,6 +188,7 @@ exports[`renders TimeInputs 1`] = `
"borderRadius": 8,
"borderWidth": 0,
"color": "rgba(28, 27, 31, 1)",
"fontSize": 57,
"height": 72,
},
]
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/Time/__snapshots__/TimePicker.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ exports[`renders TimePicker 1`] = `
style={
[
{
"fontSize": 57,
"textAlign": "center",
"textAlignVertical": "center",
"width": 96,
Expand All @@ -62,6 +61,7 @@ exports[`renders TimePicker 1`] = `
"borderRadius": 8,
"borderWidth": 0,
"color": "rgba(28, 27, 31, 1)",
"fontSize": 57,
"height": 72,
},
]
Expand Down Expand Up @@ -186,7 +186,6 @@ exports[`renders TimePicker 1`] = `
style={
[
{
"fontSize": 57,
"textAlign": "center",
"textAlignVertical": "center",
"width": 96,
Expand All @@ -197,6 +196,7 @@ exports[`renders TimePicker 1`] = `
"borderRadius": 8,
"borderWidth": 0,
"color": "rgba(28, 27, 31, 1)",
"fontSize": 57,
"height": 72,
},
]
Expand Down
Loading