Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
fc13905
Rewrite Appbar, Avatar, Card to TS
wojteg1337 Jun 5, 2019
075b2fc
Rewrite Button, Modal, Snackbar, Surface to TS
raajnadar Jun 6, 2019
ffccc11
feat: Dialog to TS
wojteg1337 Jun 6, 2019
4a0a237
Merge branch 'feat/flow-to-typescript' of github.com:callstack/react-…
wojteg1337 Jun 6, 2019
33f632f
Migrate AppBar
wojteg1337 Jun 6, 2019
df68f22
Migrate Drawer
wojteg1337 Jun 6, 2019
78a4d89
feat: FAB to TS
wojteg1337 Jun 6, 2019
a8740ee
Fix typing
raajnadar Jun 6, 2019
995612d
feat: List to TS
wojteg1337 Jun 6, 2019
4d3e67f
Rewrite activityindicator, badge, banner to TS
raajnadar Jun 6, 2019
4e05215
feat: Menu to TS
wojteg1337 Jun 6, 2019
c33dc8f
feat: Portal to TS
wojteg1337 Jun 6, 2019
0224ae1
feat: TextInput to TS
wojteg1337 Jun 7, 2019
06d3173
Merge branch 'feat/flow-to-typescript' of github.com:callstack/react-…
wojteg1337 Jun 7, 2019
5e0ba7d
fix: badge types
wojteg1337 Jun 7, 2019
150d5dc
feat: remove js files of migrated files, add typedefinitions, update …
wojteg1337 Jun 7, 2019
df37515
feat: remove @flow and add ts
raajnadar Jun 7, 2019
d5cd549
feat: typography to ts
wojteg1337 Jun 7, 2019
c9bdad9
feat: flow to ts
wojteg1337 Jun 7, 2019
82034dc
feat: flow to ts
wojteg1337 Jun 7, 2019
ce2efe9
feat: move theming to tsx
wojteg1337 Jun 7, 2019
a248c04
fix: add ci test for tyscript
raajnadar Jun 10, 2019
d2de0a0
fix: run yarn bootstrap
raajnadar Jun 10, 2019
380cf88
feat: move styles and theming to TS
wojteg1337 Jun 10, 2019
4b8a718
Merge branch 'feat/flow-to-typescript' of github.com:callstack/react-…
wojteg1337 Jun 10, 2019
eb49907
feat: add bob to generate lib files & add final tsconfig
wojteg1337 Jun 10, 2019
41ba0d1
fix: config.yml
wojteg1337 Jun 10, 2019
738b7f3
fix: TS fixes
wojteg1337 Jun 10, 2019
17a1862
fix: fix all lint issues
raajnadar Jun 10, 2019
a4fae9f
fix: snapshots and remove ts-tests
raajnadar Jun 10, 2019
d11c6cf
fix: TS fixes
wojteg1337 Jun 10, 2019
6fb2887
Merge branch 'feat/flow-to-typescript' of github.com:callstack/react-…
wojteg1337 Jun 10, 2019
f959ac8
fix: TS fixes
wojteg1337 Jun 10, 2019
fb6cd89
fix: TS errors fixing - 50 left
wojteg1337 Jun 11, 2019
3369e1c
fix: Missed files
wojteg1337 Jun 11, 2019
df37c25
fix: TypeScript..
wojteg1337 Jun 12, 2019
c4612e6
fix: TypeScript..
wojteg1337 Jun 12, 2019
8091799
fix: lint
wojteg1337 Jun 12, 2019
719149d
fix: partial fix for CI tests
raajnadar Jun 13, 2019
a99501f
fix: Migrate all examples to typescript with some typefixes
wojteg1337 Jun 13, 2019
fe49a8c
Merge branch 'feat/flow-to-typescript' of github.com:callstack/react-…
wojteg1337 Jun 13, 2019
532653a
feat: fix all hoisting issues with withTheme
wojteg1337 Jun 24, 2019
835a00f
fix: yarn typescript --declaration --emitDeclarationOnly
wojteg1337 Jun 25, 2019
076890f
feat: bump package versions
wojteg1337 Jun 25, 2019
f45667d
feat: fix react types
wojteg1337 Jun 25, 2019
d7d1414
feat: docs gen
wojteg1337 Jun 25, 2019
5110363
docs: fix docs generation
satya164 Jun 25, 2019
e348064
feat: pull updates, check example apps
wojteg1337 Jun 26, 2019
baacc08
feat: pull updates, check example apps
wojteg1337 Jun 26, 2019
e458d6b
fix: fix textInput
Trancever Jun 26, 2019
6f10ce2
Merge branch 'master' into feat/flow-to-typescript
Trancever Jun 26, 2019
2462055
fix: typescript types
Trancever Jun 26, 2019
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
9 changes: 4 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- dependencies-example-{{ checksum "example/package.json" }}
- dependencies-example-
- run: |
yarn install --cwd example --frozen-lockfile
yarn install --cwd docs --frozen-lockfile
yarn install --frozen-lockfile
cd docs && yarn install --frozen-lockfile && cd ..
cd example && yarn install --frozen-lockfile && cd ..
- save_cache:
key: dependencies-{{ checksum "package.json" }}
paths: node_modules
Expand All @@ -40,14 +40,13 @@ jobs:
- persist_to_workspace:
root: .
paths: .
lint-and-flow:
lint:
<<: *defaults
steps:
- attach_workspace:
at: ~/react-native-paper
- run: |
yarn lint
yarn flow check
typescript:
<<: *defaults
steps:
Expand Down Expand Up @@ -106,7 +105,7 @@ workflows:
build-and-test:
jobs:
- install-dependencies
- lint-and-flow:
- lint:
requires:
- install-dependencies
- typescript:
Expand Down
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ node_modules/
flow-typed/
coverage/
docs/dist/

# generated by bob
lib/
25 changes: 15 additions & 10 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"browser": true
},

"extends": ["callstack-io"],
"extends": ["@callstack"],

"plugins": ["react-native"],

Expand All @@ -13,18 +13,23 @@
"no-nested-ternary": "off",
"global-require": "off",

"flowtype/define-flow-type": "error",
"flowtype/no-weak-types": "off",
"flowtype/require-variable-type": "off",
"flowtype/sort-keys": "off",
"flowtype/type-id-match": "off",
"flowtype/use-flow-type": "error",
"flowtype/valid-syntax": "error",

"import/no-extraneous-dependencies": "off",
"import/first": "off",

"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "off"
"react-native/split-platform-components": "off",
"react-native/no-raw-text": "off"
},

"settings": {
"import/extensions": [".js", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".tsx"]
}
}
}
}
3 changes: 1 addition & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
node_modules/react-native/flow-github/

[options]
emoji=true
Expand Down Expand Up @@ -80,4 +79,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.78.0
^0.92.0
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# VSCode
.vscode/
tsconfig.json
jsconfig.json

# Xcode
Expand Down Expand Up @@ -58,3 +57,6 @@ dist/
# Release
#
CHANGELOG.md

# generated by bob
lib/
9 changes: 0 additions & 9 deletions __ts-tests__/ActivityIndicator.test.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions __ts-tests__/Appbar.test.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions __ts-tests__/AppbarHeader.test.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions __ts-tests__/AvatarIcon.test.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions __ts-tests__/AvatarImage.test.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions __ts-tests__/AvatarText.test.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions __ts-tests__/Badge.test.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions __ts-tests__/Banner.test.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions __ts-tests__/BottomNavigation.test.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions __ts-tests__/Button.test.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions __ts-tests__/Caption.test.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions __ts-tests__/Card.test.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions __ts-tests__/CardActions.test.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions __ts-tests__/CardContent.test.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions __ts-tests__/CardCover.test.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions __ts-tests__/CardTitle.test.tsx

This file was deleted.

Loading