Added flow config and fixed error.

This commit is contained in:
Joel Arvidsson 2015-08-16 22:56:23 +02:00
parent f56522a18f
commit 20811e9009
3 changed files with 47 additions and 2 deletions

45
.flowconfig Normal file
View File

@ -0,0 +1,45 @@
[ignore]
.*/KeychainExample/*
# We fork some components by platform.
.*/*.web.js
.*/*.android.js
# Some modules have their own node_modules with overlap
.*/node_modules/node-haste/.*
# Ignore react-tools where there are overlaps, but don't ignore anything that
# react-native relies on
.*/node_modules/react-tools/src/vendor/core/ExecutionEnvironment.js
.*/node_modules/react-tools/src/browser/eventPlugins/ResponderEventPlugin.js
.*/node_modules/react-tools/src/browser/ui/React.js
.*/node_modules/react-tools/src/core/ReactInstanceHandles.js
.*/node_modules/react-tools/src/event/EventPropagators.js
# Ignore commoner tests
.*/node_modules/commoner/test/.*
# See https://github.com/facebook/flow/issues/442
.*/react-tools/node_modules/commoner/lib/reader.js
# Ignore jest
.*/react-native/node_modules/jest-cli/.*
[include]
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
[options]
module.system=haste
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
[version]
0.12.0

View File

@ -1,6 +1,6 @@
/** /**
* Reference: <https://developer.apple.com/library/ios/documentation/Security/Reference/keychainservices/index.html#//apple_ref/doc/constant_group/Protocol_Values> * Reference: <https://developer.apple.com/library/ios/documentation/Security/Reference/keychainservices/index.html#//apple_ref/doc/constant_group/Protocol_Values>
* @providesModule KeychainAuthenticationTypesEnum * @providesModule KeychainProtocolsEnum
*/ */
'use strict'; 'use strict';

View File

@ -4,7 +4,7 @@
"description": "Keychain Access for React Native", "description": "Keychain Access for React Native",
"main": "index.ios.js", "main": "index.ios.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "flow"
}, },
"keywords": [ "keywords": [
"react-native", "react-native",