Skip to content

Commit 3db0550

Browse files
author
David Narbutovich
authored
V2 (#1)
* Update App * Update implementation * Add example * Sync with new api * Add linter, formater, ci * Add change log * Update readme, typed, added migration guide * Added tests, update props * Added travis * Added ci info * Remove support node v6 * Update examples * Update default prop * Update readme
1 parent 46b8203 commit 3db0550

File tree

106 files changed

+7961
-5607
lines changed

Some content is hidden

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

106 files changed

+7961
-5607
lines changed

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[*]
2+
indent_style = space
3+
indent_size = 2
4+
charset = utf-8
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
max_line_length = 233
8+
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.eslintrc.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: ['@exeto/eslint-config/node', 'prettier'],
5+
plugins: ['prettier'],
6+
rules: {
7+
'prettier/prettier': 'error',
8+
},
9+
};

.flowconfig

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[ignore]
2+
; We fork some components by platform
3+
.*/*[.]android.js
4+
5+
; Ignore unexpected extra "@providesModule"
6+
.*/node_modules/.*/node_modules/fbjs/.*
7+
8+
; Ignore duplicate module providers
9+
; For RN Apps installed via npm, "Libraries" folder is inside
10+
; "node_modules/react-native" but in the source repo it is in the root
11+
.*/Libraries/react-native/React.js
12+
13+
; Ignore polyfills
14+
.*/Libraries/polyfills/.*
15+
16+
.*/examples/.*
17+
[include]
18+
19+
[libs]
20+
node_modules/react-native/Libraries/react-native/react-native-interface.js
21+
node_modules/react-native/flow/
22+
node_modules/react-native/flow-github/
23+
24+
[options]
25+
emoji=true
26+
27+
module.system=haste
28+
module.system.haste.use_name_reducers=true
29+
# get basename
30+
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
31+
# strip .js or .js.flow suffix
32+
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
33+
# strip .ios suffix
34+
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
35+
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
36+
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
37+
module.system.haste.paths.blacklist=.*/__tests__/.*
38+
module.system.haste.paths.blacklist=.*/__mocks__/.*
39+
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
40+
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
41+
42+
munge_underscores=true
43+
44+
suppress_type=$FlowIssue
45+
suppress_type=$FlowFixMe
46+
suppress_type=$FlowFixMeProps
47+
suppress_type=$FlowFixMeState
48+
49+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
50+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
51+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
52+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

.gitignore

+1-67
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,2 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
*.pid.lock
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
18-
coverage
19-
20-
# nyc test coverage
21-
.nyc_output
22-
23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24-
.grunt
25-
26-
# Bower dependency directory (https://bower.io/)
27-
bower_components
28-
29-
# node-waf configuration
30-
.lock-wscript
31-
32-
# Compiled binary addons (http://nodejs.org/api/addons.html)
33-
build/Release
34-
35-
# Dependency directories
1+
coverage/
362
node_modules/
37-
jspm_packages/
38-
39-
# Typescript v1 declaration files
40-
typings/
41-
42-
# Optional npm cache directory
43-
.npm
44-
45-
# Optional eslint cache
46-
.eslintcache
47-
48-
# Optional REPL history
49-
.node_repl_history
50-
51-
# Output of 'npm pack'
52-
*.tgz
53-
54-
# Yarn Integrity file
55-
.yarn-integrity
56-
57-
# dotenv environment variables file
58-
.env
59-
60-
# IDEA
61-
.idea
62-
63-
# IML
64-
*.iml
65-
66-
# OSX
67-
.DS_Store
68-

.npmignore

-3
This file was deleted.

.setup-tests.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { configure } from 'enzyme';
2+
import Adapter from 'enzyme-adapter-react-16';
3+
4+
configure({ adapter: new Adapter() });

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- '10'
5+
- '8'
6+
install:
7+
- yarn
8+
script:
9+
- yarn ci
10+
cache:
11+
yarn: true

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Change Log
2+
This project adheres to [Semantic Versioning](http://semver.org/).
3+
4+
## 1.0.0
5+
6+
* Rename `ignoreCase` => `ignoreCaseWhenCompareCode` property
7+
* Rename `className` => `variant` property
8+
9+
* Add new methods (`getCodeInputStyle()`and `getInputProps()`_ for help users to customize inputs
10+
* Add new property `containerProps`, `testID`
11+
* Add `onChangeCode()` callback and `defaultCode` props. [#22](https://github.com/ttdung11t2/react-native-confirmation-code-input/pull/22)[#33](https://github.com/ttdung11t2/react-native-confirmation-code-input/pull/33/files)
12+
* Add `clear()` method to TypeScript definition [#21](https://github.com/ttdung11t2/react-native-confirmation-code-input/pull/21)
13+
14+
* Fix slowly focus change [10](https://github.com/ttdung11t2/react-native-confirmation-code-input/pull/10)
15+
* Fix IOS input bag. [#38](https://github.com/ttdung11t2/react-native-confirmation-code-input/pull/38/files)
16+
17+
# 0.0.0
18+
19+
* Fork dead repo

0 commit comments

Comments
 (0)