Skip to content

Commit f2fe94a

Browse files
Refactor functional typescript component (#301)
* upgrade example to latest react-native * refactor DropdownAlert to functional typescript component and add first test * use function instead of arrows; fix onCancel * rename alert to alertWithType; add test ids; implement promises * test render functions and onLayout; consolidate touchable opacity style * implement Notification child components and reorganize example list * implement children prop, action callbacks and rename props * upgrade example to react-native 0.72.3 * rename DropdownAlert test file; upgrade dev deps; fix prettier issues * update README and package json * fix test cases where state changes not wrapped in act function * fix setTimeout return type * fix timeout not clearing * refactor example ListItem, NotificationAndriod and NotificationIOS * Update demo and add using children prop to readme * implement Queue test * fix rename of example folder * reinstate caveats in readme
1 parent fc0a750 commit f2fe94a

File tree

147 files changed

+15874
-16147
lines changed

Some content is hidden

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

147 files changed

+15874
-16147
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules/
2-
Example/
2+
example/
33
screenshots/
44
assets/
55
coverage/

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
root: true,
3-
extends: ['@react-native-community', 'prettier'],
3+
extends: ['@react-native', 'prettier'],
44
};

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-node@v2
1818
with:
19-
node-version: 16
19+
node-version: 18
2020
- name: Install dependencies
2121
run: yarn
2222
- name: yarn test

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ buck-out/
5454

5555
# custom
5656
jsconfig.json
57-
Example/src
5857
.vscode/
59-
coverage
58+
coverage
59+
example/src
60+
example/jsconfig.json
61+
CHANGELOG.md

.npmignore

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1-
.DS_Store
1+
# directories
22
node_modules/
3-
Example/
43
example/
4+
__tests__/
5+
coverage/
6+
.github/
57
screenshots/
8+
.vscode/
9+
10+
# files
611
npm-debug.log
7-
.travis.yml
12+
.DS_Store
13+
.gitignore
14+
.npmignore
15+
.prettierignore
16+
.prettierrc.js
17+
.eslintignore
18+
.eslintrc.js
19+
babel.config.js
20+
jest.config.ts
21+
tsconfig.json
822
README.md
9-
ISSUE_TEMPLATE.md
10-
.babelrc
11-
babelrc
12-
test/
13-
__tests__/
14-
coverage/
15-
.gitattributes
16-
setupTests.js
23+
CHANGELOG.md
24+
MIGRATION.md

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules/
2-
Example/
2+
example/
33
screenshots/
44
assets/
55
coverage/

.prettierrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
2+
arrowParens: 'avoid',
3+
bracketSameLine: true,
24
bracketSpacing: false,
3-
jsxBracketSameLine: true,
45
singleQuote: true,
56
trailingComma: 'all',
67
};

0 commit comments

Comments
 (0)