Skip to content
Open
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
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

123 changes: 0 additions & 123 deletions .eslintrc.js

This file was deleted.

41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Bug report
about: Report a problem with react-native-login-screen
title: "[Bug] "
labels: bug
---

## Describe the bug

A clear and concise description of what the bug is.

## Reproduction

Steps (or a minimal Expo Snack / repo) to reproduce the behavior.

```tsx
// Minimal LoginScreen usage that reproduces the issue
```

## Expected behavior

What you expected to happen.

## Screenshots / recordings

If applicable, add screenshots or a screen recording.

## Environment

| Package | Version |
| ------------------------------------ | ------- |
| react-native-login-screen | |
| react-native | |
| react | |
| react-native-text-input-interactive | |
| Platform (iOS / Android / web) | |
| New Architecture enabled? | yes/no |

## Additional context

Add any other context about the problem here.
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: Question / discussion
url: https://github.com/kuraydev/react-native-login-screen/discussions
about: Ask and answer questions about usage and customization.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for react-native-login-screen
title: "[Feature] "
labels: enhancement
---

## Is your feature request related to a problem?

A clear and concise description of what the problem is.

## Describe the solution you'd like

What you want to happen, ideally with the proposed prop/API shape.

## Describe alternatives you've considered

Any alternative solutions or features you've considered.

## Additional context

Add any other context or screenshots about the feature request here.
24 changes: 24 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Summary

<!-- What does this PR change and why? -->

## Type of change

- [ ] Bug fix (non-breaking)
- [ ] New feature (non-breaking)
- [ ] Breaking change (requires a major version bump)
- [ ] Documentation / tooling only

## Checklist

- [ ] `npm run lint` passes
- [ ] `npm run typecheck` passes
- [ ] `npm test` passes
- [ ] `npm run build` succeeds
- [ ] I did not rename or remove any public prop, and runtime defaults are unchanged (or this is a documented breaking change)
- [ ] I updated the README / props table if the public API changed
- [ ] I added an entry to `CHANGELOG.md`

## Related issues

<!-- e.g. Closes #56 -->
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches: [master, main]
pull_request:
branches: [master, main]

jobs:
test:
name: Lint, typecheck, test & build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 20, 22]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: Install dependencies
run: npm install --legacy-peer-deps --ignore-scripts

- name: Lint
run: npm run lint

- name: Typecheck
run: npm run typecheck

- name: Test
run: npm test -- --ci --coverage

- name: Build
run: npm run build
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

# Manual trigger only: a maintainer dispatches this once NPM_TOKEN is configured.
# semantic-release derives the next version from the conventional-commit history.
on:
workflow_dispatch:

permissions:
contents: write
issues: write
pull-requests: write

jobs:
release:
name: semantic-release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: npm install --legacy-peer-deps --ignore-scripts

- name: Build
run: npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ node_modules/
npm-debug.log
yarn-error.log

# Build output (generated by react-native-builder-bob)
lib/

# Test coverage
coverage/

# BUCK
buck-out/
\.buckd/
Expand Down
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit
npx --no-install commitlint --edit "$1"
6 changes: 1 addition & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run prettier
npm run lint
npx lint-staged
9 changes: 9 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"branches": ["master", "main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
]
}
Loading
Loading