-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from tttstudios/improvement/typescript-impleme…
…ntation Added typescript implementation and refined the npm package auto-release flow.
- Loading branch information
Showing
11 changed files
with
7,364 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,6 @@ buck-out/ | |
# Environment file | ||
.env | ||
ReactotronConfig.js | ||
|
||
# ts build dir | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const codeToArray = (code?: string): string[] => code?.split("") ?? []; | ||
|
||
export default { codeToArray } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Platform } from 'react-native' | ||
|
||
const majorVersionIOS = parseInt(Platform.Version, 10); | ||
const majorVersionIOS = parseInt(String(Platform.Version), 10); | ||
export const isAutoFillSupported = (Platform.OS === 'ios' && majorVersionIOS >= 12) | ||
|
||
export default { isAutoFillSupported } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"outDir": "./dist", | ||
"strict": true, | ||
"jsx": "react-native", | ||
"target": "es2019", | ||
"module": "es6", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"noImplicitAny": true, | ||
"experimentalDecorators": true, | ||
"preserveConstEnums": true, | ||
"sourceMap": true, | ||
"strictNullChecks": true, | ||
"skipDefaultLibCheck": true, | ||
"skipLibCheck": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"importHelpers": false, | ||
"alwaysStrict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"strictFunctionTypes": true, | ||
"resolveJsonModule": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"strictPropertyInitialization": false, | ||
"lib": ["es6"], | ||
"typeRoots": ["./node_modules/@types"] | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"babel.config.js", | ||
"jest.config.js" | ||
], | ||
"include": [ | ||
"./index.tsx", | ||
"./styles.ts", | ||
"./index.d.ts" | ||
], | ||
} |
Oops, something went wrong.