Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
f71e1bf
feat: migrate to React Native Paper 6
iM-GeeKy Nov 11, 2026
cbfb8f6
chore: revert version so release it will be 0.25.0
iM-GeeKy Nov 11, 2026
dd8d8f0
refactor: use View for picker chrome that does not animate
iM-GeeKy Nov 11, 2026
53cf9d7
fix: show DatePickerInput validation errors as supportingText
iM-GeeKy Nov 12, 2026
666874c
fix: render time picker Cancel and Ok as text buttons
iM-GeeKy Nov 12, 2026
990f547
chore: bump oxlint-plugin-react-native
iM-GeeKy Nov 12, 2026
c532af3
chore: bump example dependencies
iM-GeeKy Nov 12, 2026
6d546bb
refactor: simplify the example by removing unused config and duplicat…
iM-GeeKy Nov 12, 2026
669ae34
fix: match the date input label background to the modal surface
iM-GeeKy Nov 12, 2026
0c74228
chore: gate releases on CI and repair GitHub workflows
iM-GeeKy Nov 12, 2026
e2dd964
chore: drop the TypeScript casing option already enabled by default
iM-GeeKy Nov 12, 2026
fcf40aa
style: alphabetize props in src for readability
iM-GeeKy Nov 12, 2026
0295a09
chore: sync the example library version with package.json
iM-GeeKy Nov 12, 2026
e4b9962
perf: make calendar scrolling independent of the year span
iM-GeeKy Nov 13, 2026
93bc54f
fix: align weekday labels and arrows with the day columns on web
iM-GeeKy Nov 13, 2026
ed38e9d
style: remove comments from src for consistency
iM-GeeKy Nov 13, 2026
ddfadc4
fix: keep close and save at the top of the tablet date dialog
iM-GeeKy Nov 13, 2026
f53432f
test: cover the remaining branches and silence test output
iM-GeeKy Nov 13, 2026
56135cb
fix: let the month list coast instead of snapping when scrolling stops
iM-GeeKy Nov 14, 2026
1f767ab
fix: parse Thai date input on the Gregorian calendar
iM-GeeKy Nov 14, 2026
e7eeaaa
refactor: keep date and time types in one place
iM-GeeKy Nov 14, 2026
86a9f7b
docs: shorten the README by merging repeated lines
iM-GeeKy Nov 14, 2026
1d5a8db
fix: localize time controls and reject dates that overflow the calendar
iM-GeeKy Nov 14, 2026
cb78057
ci: run GitHub Actions on Node.js 26 LTS
iM-GeeKy Nov 14, 2026
579d716
style: alphabetize bindings and accept more typed date formats
iM-GeeKy Nov 14, 2026
3d283ce
chore: remove release notes doc
iM-GeeKy Nov 14, 2026
9ecca89
chore: remove resolveJsonModule implied by bundler resolution
iM-GeeKy Nov 14, 2026
588ef9d
refactor: collapse repeated date and time picker logic
iM-GeeKy Nov 14, 2026
e1b0fba
fix: align the time picker with Material 3
iM-GeeKy Nov 15, 2026
fe1ccea
feat: align date pickers with the Material 3 spec
iM-GeeKy Nov 15, 2026
10a8bb4
feat: add docked and modal date input pickers
iM-GeeKy Nov 15, 2026
2bf0537
fix: annotate TimeInput so declaration emit stays portable
iM-GeeKy Nov 15, 2026
050bae6
fix: inset the month dropdown highlight from its label
iM-GeeKy Nov 15, 2026
abbf876
refactor: group and alphabetize declarations across src
iM-GeeKy Nov 15, 2026
c924726
fix: show the locale date format as the date input placeholder
iM-GeeKy Nov 15, 2026
4126863
fix: keep the page in place when the modal date input closes
iM-GeeKy Nov 15, 2026
596e9ca
feat: link each example card to its documentation
iM-GeeKy Nov 15, 2026
7f2a619
test: restore full Jest coverage
iM-GeeKy Nov 15, 2026
906a749
refactor: move the example theme toggle to a header icon
iM-GeeKy Nov 15, 2026
6be12c0
docs: give the docked and modal date inputs their own pages
iM-GeeKy Nov 15, 2026
821ddf2
fix: keep the web calendar in view while scrolling
iM-GeeKy Nov 15, 2026
fe32aaf
fix: pin react-refresh so the docs site can load in dev
iM-GeeKy Nov 15, 2026
4cc76af
refactor: share the calendar grid, date parser, and translations
iM-GeeKy Nov 15, 2026
7c239eb
fix: show every day of a single-date month
iM-GeeKy Nov 15, 2026
a1b3cfa
fix: highlight the docked month and year only while hovered
iM-GeeKy Nov 15, 2026
ef05fb4
fix: match the docked weekday gap to the day rows
iM-GeeKy Nov 15, 2026
44e252b
refactor: share picker logic and typecheck every test
iM-GeeKy Nov 16, 2026
128f64e
fix: size the single-date card to the visible month
iM-GeeKy Nov 16, 2026
bee4e22
fix: fill the phone sheet with the single-date year selector
iM-GeeKy Nov 16, 2026
f8a9c24
fix: annotate the date input export so declaration emit stays portable
iM-GeeKy Nov 16, 2026
cbb14b6
fix: align date and time pickers with the Material layout spec
iM-GeeKy Nov 16, 2026
c4e3fa2
fix: annotate header background color so declaration emit stays portable
iM-GeeKy Nov 16, 2026
38a052d
fix: localize invalid time and declare the supported peer range
iM-GeeKy Nov 16, 2026
1167ea6
refactor: inline the example library version and share its links
iM-GeeKy Nov 17, 2026
baea97b
refactor: remove the icons from the example cards
iM-GeeKy Nov 17, 2026
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
15 changes: 0 additions & 15 deletions .editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion .env.example

This file was deleted.

3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: 🐛 Report a bug
description: Create a report to help us improve
labels: ["bug"]
body:
- type: textarea
id: current
attributes:
label: Current behaviour
description: Describe what happens.
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behaviour
description: Describe what you expected to happen.
validations:
required: true
- type: textarea
id: repro
attributes:
label: How to reproduce
description: Link a https://snack.expo.dev example or a GitHub repo, and list the steps. A link at the end of this field is fine.
placeholder: https://snack.expo.dev/
validations:
required: true
- type: textarea
id: preview
attributes:
label: Preview
description: Screenshots or video, if you have them.
- type: textarea
id: tried
attributes:
label: What have you tried so far?
- type: textarea
id: environment
attributes:
label: Environment
description: Fill in the versions you are using.
value: |
| software | version |
| --- | --- |
| ios | |
| android | |
| react-native | |
| react-native-paper | |
| react-native-paper-dates | |
| node | |
| package manager | |
| expo sdk | |
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Documentation
url: https://web-ridge.github.io/react-native-paper-dates/
about: Installation, usage, and the Paper 5 migration guide.
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature.md

This file was deleted.

27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 🗣 Feature request
description: Suggest an idea for this project
labels: ["feature request"]
body:
- type: textarea
id: problem
attributes:
label: Is your feature request related to a problem?
description: What is frustrating or missing?
placeholder: I'm always frustrated when...
validations:
required: true
- type: textarea
id: solution
attributes:
label: Describe the solution you'd like
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered
- type: textarea
id: context
attributes:
label: Additional context
description: Screenshots or anything else that would help.
11 changes: 0 additions & 11 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 💬 Question
description: You need help with React Native Paper Dates.
labels: ["question"]
body:
- type: markdown
attributes:
value: |
Check the [documentation](https://web-ridge.github.io/react-native-paper-dates/) first. Use the bug report template when something is broken, and the feature request template for new behavior.
- type: textarea
id: question
attributes:
label: Question
description: What are you trying to do, and where are you stuck? Include the library version and a short code sample when you can.
validations:
required: true
33 changes: 18 additions & 15 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
name: Setup
description: Setup Node.js and install dependencies
description: Setup Node.js, Bun, and install dependencies

inputs:
install-example:
description: Install example app dependencies
required: false
default: "false"

runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
node-version: 26

- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
bun-version-file: package.json

- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn install --cwd example --frozen-lockfile
yarn install --frozen-lockfile
run: bun install --frozen-lockfile
shell: bash

- name: Install example dependencies
if: inputs.install-example == 'true'
run: bun install --frozen-lockfile --cwd example
shell: bash
12 changes: 12 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Summary

<!-- What changed and why. Prefer one focused change. -->

## Test plan

- [ ] `bun run lint`
- [ ] `bun run format:check`
- [ ] `bun run typecheck`
- [ ] `bun run test`
- [ ] Docs updated when behavior or the public API changed
- [ ] Example app checked when the UI changed
96 changes: 51 additions & 45 deletions .github/workflows/check-repro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,65 +5,71 @@ on:
issue_comment:
types: [created, edited]

permissions:
contents: read
issues: write

jobs:
check-repro:
if: ${{ github.event.label.name == 'bug' }}
if: contains(github.event.issue.labels.*.name, 'bug')
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
- uses: actions/github-script@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const user = context.payload.sender.login;
const user = context.payload.sender.login.replace(
/[.*+?^${}()|[\]\\]/g,
"\\$&"
);
const body = context.payload.comment
? context.payload.comment.body
: context.payload.issue.body;
const regex = new RegExp(
`https?:\\/\\/((github\\.com\\/${user}\\/[^/]+\\/?[\\s\\n]+)|(snack\\.expo\\.dev\\/.+))`,
'gm'
const pattern = new RegExp(
`https?:\\/\\/(?:github\\.com\\/${user}\\/[^\\s)\\]>]+|snack\\.expo\\.dev\\/\\S+)`,
"i"
);
if (regex.test(body)) {
await github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['repro provided'],
const issue = {
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
};
if (pattern.test(body || "")) {
await github.rest.issues.addLabels({
...issue,
labels: ["repro provided"],
});
try {
await github.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'needs repro',
await github.rest.issues.removeLabel({
...issue,
name: "needs repro",
});
} catch (error) {
if (!/Label does not exist/.test(error.message)) {
if (error.status !== 404) {
throw error;
}
}
} else {
if (context.eventName !== 'issues') {
return;
}
const body = "Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a [snack.expo.dev](https://snack.expo.dev) link or link to a GitHub repo under your username).\n\nCan you provide a [minimal repro](https://stackoverflow.com/help/minimal-reproducible-example) which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.";
const comments = await github.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
});
if (comments.data.some(comment => comment.body === body)) {
return;
}
await github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body,
});
await github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['needs repro'],
});
}
return;
}
if (context.eventName !== "issues") {
return;
}
const comment = [
"Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a [snack.expo.dev](https://snack.expo.dev) link or link to a GitHub repo under your username).",
"",
"Can you provide a [minimal repro](https://stackoverflow.com/help/minimal-reproducible-example) which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.",
].join("\n");
const comments = await github.rest.issues.listComments({
...issue,
per_page: 100,
});
if (comments.data.some((entry) => entry.body === comment)) {
return;
}
await github.rest.issues.createComment({
...issue,
body: comment,
});
await github.rest.issues.addLabels({
...issue,
labels: ["needs repro"],
});
Loading
Loading