Skip to content

Commit 53baff6

Browse files
committed
Initial commit
0 parents  commit 53baff6

91 files changed

Lines changed: 25985 additions & 0 deletions

File tree

Some content is hidden

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

.changeset/config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3+
"changelog": [
4+
"@changesets/cli/changelog",
5+
{
6+
"repo": "callstackincubator/react-native-grab"
7+
}
8+
],
9+
"commit": false,
10+
"fixed": [],
11+
"linked": [],
12+
"access": "public",
13+
"baseBranch": "main",
14+
"updateInternalDependencies": "patch",
15+
"ignore": []
16+
}
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: "Element not grabbable"
2+
description: Report when a specific element cannot be grabbed by react-native-grab
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: Thanks for the report. Please provide enough detail so we can reproduce the issue.
8+
9+
- type: textarea
10+
id: bug-description
11+
attributes:
12+
label: Describe the issue
13+
description: What did you expect to happen, and what happened instead?
14+
placeholder: I am doing ... I expect ... but instead ...
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
id: element-context
20+
attributes:
21+
label: Which element is not grabbable?
22+
description: Describe where the element is rendered (screen, modal, list item, etc.).
23+
placeholder: "Example: CTA button inside a modal rendered in a nested stack screen."
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: reproduction-steps
29+
attributes:
30+
label: Steps to reproduce
31+
placeholder: |
32+
1. Open screen ...
33+
2. Navigate to ...
34+
3. Try to grab ...
35+
4. Observe ...
36+
validations:
37+
required: true
38+
39+
- type: textarea
40+
id: code-sample
41+
attributes:
42+
label: Minimal reproduction
43+
description: Share a minimal code snippet or repository URL.
44+
placeholder: Reproduction URL or snippet
45+
validations:
46+
required: true
47+
48+
- type: input
49+
id: react-native-version
50+
attributes:
51+
label: React Native version
52+
placeholder: 0.76.3
53+
validations:
54+
required: true
55+
56+
- type: input
57+
id: react-native-grab-version
58+
attributes:
59+
label: react-native-grab version
60+
placeholder: 1.0.0
61+
validations:
62+
required: true
63+
64+
- type: dropdown
65+
id: router
66+
attributes:
67+
label: Routing library
68+
description: Are you using react-navigation or Expo Router?
69+
options:
70+
- react-navigation
71+
- Expo Router
72+
- Both
73+
- Neither
74+
validations:
75+
required: true
76+
77+
- type: dropdown
78+
id: native-navigators
79+
attributes:
80+
label: Using native navigators?
81+
options:
82+
- "Yes"
83+
- "No"
84+
- Not sure
85+
validations:
86+
required: true
87+
88+
- type: textarea
89+
id: environment
90+
attributes:
91+
label: Environment details
92+
description: Platform/device/emulator, OS version, Hermes/JSC, and other relevant setup details.
93+
validations:
94+
required: true
95+
96+
- type: textarea
97+
id: logs
98+
attributes:
99+
label: Logs / screenshots / recordings
100+
description: Paste logs and attach screenshots/videos if possible.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: "Wrong rendered by stack"
2+
description: Report rendering issues related to component render stack ("rendered by" chain)
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: Please share the component render stack (React DevTools "rendered by" chain) so we can reproduce the rendering issue.
8+
9+
- type: textarea
10+
id: bug-description
11+
attributes:
12+
label: Describe the rendering issue
13+
description: What did you expect to see, and what is rendered instead?
14+
placeholder: I expect ... but instead ...
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
id: rendered-by-stack
20+
attributes:
21+
label: Rendered-by stack details
22+
description: Describe the component hierarchy that renders the affected element (as seen in React DevTools "rendered by").
23+
placeholder: |
24+
App
25+
-> Screen
26+
-> SomeContainer
27+
-> GrabTarget
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: reproduction-steps
33+
attributes:
34+
label: Steps to reproduce
35+
placeholder: |
36+
1. Render component ...
37+
2. Trigger state/prop change ...
38+
3. Observe affected element ...
39+
4. Observe ...
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
id: code-sample
45+
attributes:
46+
label: Minimal reproduction
47+
description: Share relevant component tree/screen code or a repository URL.
48+
placeholder: Reproduction URL or snippet
49+
validations:
50+
required: true
51+
52+
- type: input
53+
id: react-native-version
54+
attributes:
55+
label: React Native version
56+
placeholder: 0.76.3
57+
validations:
58+
required: true
59+
60+
- type: input
61+
id: react-native-grab-version
62+
attributes:
63+
label: react-native-grab version
64+
placeholder: 1.0.0
65+
validations:
66+
required: true
67+
68+
- type: dropdown
69+
id: router
70+
attributes:
71+
label: Routing library
72+
description: Are you using react-navigation or Expo Router?
73+
options:
74+
- react-navigation
75+
- Expo Router
76+
- Both
77+
- Neither
78+
validations:
79+
required: true
80+
81+
- type: dropdown
82+
id: native-navigators
83+
attributes:
84+
label: Using native navigators?
85+
options:
86+
- "Yes"
87+
- "No"
88+
- Not sure
89+
validations:
90+
required: true
91+
92+
- type: textarea
93+
id: environment
94+
attributes:
95+
label: Environment details
96+
description: Platform/device/emulator, OS version, Hermes/JSC, and other relevant setup details.
97+
validations:
98+
required: true
99+
100+
- type: textarea
101+
id: logs
102+
attributes:
103+
label: Logs / screenshots / recordings
104+
description: Paste logs and attach screenshots/videos if possible.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: "Generic issue"
2+
description: Report an issue that does not match a specific category
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: Use this form for issues that do not match the specialized templates.
8+
9+
- type: textarea
10+
id: issue-description
11+
attributes:
12+
label: Describe the issue
13+
placeholder: I am doing ... I expect ... but instead ...
14+
validations:
15+
required: true
16+
17+
- type: textarea
18+
id: reproduction-steps
19+
attributes:
20+
label: Steps to reproduce
21+
placeholder: |
22+
1. ...
23+
2. ...
24+
3. ...
25+
validations:
26+
required: true
27+
28+
- type: textarea
29+
id: code-sample
30+
attributes:
31+
label: Minimal reproduction
32+
description: Share a minimal code snippet or repository URL.
33+
placeholder: Reproduction URL or snippet
34+
validations:
35+
required: true
36+
37+
- type: input
38+
id: react-native-version
39+
attributes:
40+
label: React Native version
41+
placeholder: 0.76.3
42+
validations:
43+
required: true
44+
45+
- type: input
46+
id: react-native-grab-version
47+
attributes:
48+
label: react-native-grab version
49+
placeholder: 1.0.0
50+
validations:
51+
required: true
52+
53+
- type: dropdown
54+
id: router
55+
attributes:
56+
label: Routing library
57+
description: Are you using react-navigation or Expo Router?
58+
options:
59+
- react-navigation
60+
- Expo Router
61+
- Both
62+
- Neither
63+
validations:
64+
required: true
65+
66+
- type: dropdown
67+
id: native-navigators
68+
attributes:
69+
label: Using native navigators?
70+
options:
71+
- "Yes"
72+
- "No"
73+
- Not sure
74+
validations:
75+
required: true
76+
77+
- type: textarea
78+
id: environment
79+
attributes:
80+
label: Environment details
81+
description: Platform/device/emulator, OS version, and other relevant setup details.
82+
validations:
83+
required: true
84+
85+
- type: textarea
86+
id: logs
87+
attributes:
88+
label: Logs / screenshots / recordings
89+
description: Paste logs and attach screenshots/videos if possible.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Questions & Discussions
4+
url: https://github.com/szymonchmal/react-native-grab/discussions
5+
about: Use GitHub Discussions for questions and usage help.

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
quality:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: npm
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run lint
25+
run: npm run lint
26+
27+
- name: Run tests
28+
run: npm run test

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: npm
25+
registry-url: https://registry.npmjs.org
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Create release pull request or publish
31+
uses: changesets/action@v1
32+
with:
33+
version: npm run version-packages
34+
publish: npm run release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)