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.

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

This file was deleted.

2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: [wrathchaos]
github: [kuraydev]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand Down
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Report a problem with react-native-apple-card-views
title: "[Bug] "
labels: bug
assignees: ""
---

## Describe the bug

A clear and concise description of what the bug is.

## Reproduction

Steps to reproduce, ideally an [Expo Snack](https://snack.expo.dev) or minimal repo:

1. ...
2. ...

## Expected behaviour

What you expected to happen.

## Environment

- `react-native-apple-card-views` version:
- `@freakycoder/react-native-bounceable` version:
- React Native version:
- React version:
- Expo SDK (if applicable):
- Platform(s): iOS / Android
- New Architecture enabled: yes / no

## Additional context

Logs, screenshots, or anything else that helps.
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: Discussions / Questions
url: https://github.com/kuraydev/react-native-apple-card-views/discussions
about: Ask questions and discuss usage here.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea or improvement
title: "[Feature] "
labels: enhancement
assignees: ""
---

## Problem

What problem would this feature solve? What are you trying to do?

## Proposed solution

A clear and concise description of what you want to happen.

## Alternatives considered

Any alternative solutions or features you've considered.

## Additional context

Mockups, references to the real Apple App Store UI, or anything else.
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Summary

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

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that changes existing behaviour or the public API)
- [ ] Documentation / tooling only

## Checklist

- [ ] `npm run lint` passes
- [ ] `npm run typecheck` passes
- [ ] `npm test` passes
- [ ] `npm run build` produces `build/dist`
- [ ] I did not rename public exports, prop names, or change runtime defaults (or this is documented as breaking above)
- [ ] Commits follow [Conventional Commits](https://www.conventionalcommits.org/)

## Related issues

<!-- e.g. Closes #123 -->
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
commit-message:
prefix: "build(deps)"
prefix-development: "build(deps-dev)"
groups:
dev-dependencies:
dependency-type: development

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
commit-message:
prefix: "ci"
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

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

permissions:
contents: read

jobs:
verify:
name: Lint, typecheck, test & build (Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18, 20, 22]
steps:
- name: Checkout
uses: actions/checkout@v4

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

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

- 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

- name: Verify build output
run: |
test -f build/dist/index.js
test -f build/dist/index.d.ts
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ buck-out/

# Bundle artifact
*.jsbundle

# TypeScript incremental build info
*.tsbuildinfo
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Changelog

All notable changes to this project are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Exported the `IAppleCardProps` and `IAppOfTheDayCardProps` prop interfaces from the package entry.
- `accessibilityLabel` prop on both cards; pressable areas now expose `accessibilityRole="button"` and a `hitSlop`.
- `package.json` `types`, `module`, `react-native`, `source`, `exports`, and `files` fields.
- `peerDependencies` (`react`, `react-native`, `@freakycoder/react-native-bounceable`) with deliberately wide ranges, plus `peerDependenciesMeta`.
- Jest + `@testing-library/react-native` test suite covering render, prop wiring, press handlers, accessibility labels, and the responsive style factory.
- GitHub Actions CI (lint + typecheck + test + build across Node 18/20/22) and a restored Dependabot config.
- `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, issue templates, and a pull request template.
- ESLint 9 flat config (`eslint.config.js`).

### Changed

- Both cards now read `useWindowDimensions()` so layout reacts to rotation / resize instead of capturing `Dimensions.get('window')` once at module load.
- Both cards are wrapped in `React.memo` and expose a `displayName`.
- Repointed repository / homepage / bugs / author / funding metadata from the legacy WrathChaos / freakycoder URLs to the `kuraydev` GitHub owner.
- Replaced the dead `tslint` lint script with ESLint, and migrated the legacy `.eslintrc.js` to a flat config.
- Migrated the build to a dedicated `tsconfig.build.json`; the published entry (`main`) and types remain at `build/dist`.
- Updated the Babel preset to `@react-native/babel-preset`.
- Rewrote the README props tables to match the code (the footnote prop is `footnote`, not `footnoteText`; removed the non-existent default values) and added TypeScript, New Architecture, and Expo notes.

### Removed

- Dead / deprecated devDependencies: `@types/react-native`, `react-native-typescript-transformer`, `prettier-format`, `npm-post-install`, `eslint-config-airbnb`, `@react-native-community/eslint-config`, `cpx`.
- Stale root `app.json` (a copy-paste from `react-native-header-view` that referenced non-existent assets).

### Fixed

- Stopped spreading `...rest` onto multiple elements; rest props are now routed to the single intended pressable.
- Tightened `AppOfTheDayCard.iconSource` from `any` to `ImageSourcePropType`.

## [3.0.0] - 2023-02-04

- Initial baseline for this changelog. See the git history for prior releases.
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behaviour that contributes to a positive environment include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologising to those affected by our mistakes
- Focusing on what is best for the overall community

Examples of unacceptable behaviour include:

- The use of sexualised language or imagery, and sexual attention or advances
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behaviour may be
reported to the project maintainer at **kurayogun@gmail.com**. All complaints
will be reviewed and investigated promptly and fairly.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.

[homepage]: https://www.contributor-covenant.org
Loading
Loading