瀏覽代碼

react-native 0.42.0

j8
Lyubo Marinov 8 年之前
父節點
當前提交
45e09af692

+ 5
- 3
.flowconfig 查看文件

28
 flow/
28
 flow/
29
 
29
 
30
 [options]
30
 [options]
31
+emoji=true
32
+
31
 module.system=haste
33
 module.system=haste
32
 
34
 
33
 experimental.strict_type_args=true
35
 experimental.strict_type_args=true
40
 suppress_type=$FlowFixMe
42
 suppress_type=$FlowFixMe
41
 suppress_type=$FixMe
43
 suppress_type=$FixMe
42
 
44
 
43
-suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
44
-suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
45
+suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-8]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
46
+suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-8]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
45
 suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
47
 suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
46
 
48
 
47
 unsafe.enable_getters_and_setters=true
49
 unsafe.enable_getters_and_setters=true
48
 
50
 
49
 [version]
51
 [version]
50
-^0.37.0
52
+^0.38.0

+ 0
- 1
.gitignore 查看文件

53
 #
53
 #
54
 buck-out/
54
 buck-out/
55
 \.buckd/
55
 \.buckd/
56
-android/app/libs
57
 *.keystore
56
 *.keystore
58
 
57
 
59
 # fastlane
58
 # fastlane

+ 2
- 1
android/app/src/main/AndroidManifest.xml 查看文件

29
         android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
29
         android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
30
         android:label="@string/app_name"
30
         android:label="@string/app_name"
31
         android:launchMode="singleTask"
31
         android:launchMode="singleTask"
32
-        android:name=".MainActivity">
32
+        android:name=".MainActivity"
33
+        android:windowSoftInputMode="adjustResize">
33
         <intent-filter>
34
         <intent-filter>
34
             <action android:name="android.intent.action.MAIN" />
35
             <action android:name="android.intent.action.MAIN" />
35
             <category android:name="android.intent.category.LAUNCHER" />
36
             <category android:name="android.intent.category.LAUNCHER" />

+ 36
- 0
flow-typed/npm/react-i18next_v2.x.x.js 查看文件

1
+// flow-typed signature: 57cf34196930be78935a42e5c8ac3cb6
2
+// flow-typed version: ae6284e7b7/react-i18next_v2.x.x/flow_>=v0.36.x_<=v0.39.x
3
+
4
+declare module 'react-i18next' {
5
+  declare type TFunction = (key?: ?string, data?: ?Object) => string;
6
+  declare type Locales = string | Array<string>;
7
+
8
+  declare type StatelessComponent<P> = (props: P) => ?React$Element<any>;
9
+
10
+  declare type Comp<P> = StatelessComponent<P> | Class<React$Component<*, P, *>>;
11
+
12
+  declare type Translator<OP, P> = {
13
+    (component: StatelessComponent<P>): Class<React$Component<void, OP, void>>;
14
+    <Def, St>(component: Class<React$Component<Def, P, St>>): Class<React$Component<Def, OP, St>>;
15
+  }
16
+
17
+  declare function translate<OP, P>(locales: Locales): Translator<OP, P>;
18
+
19
+  declare type NamespacesProps = {
20
+    components: Array<Comp<*>>,
21
+    i18n: { loadNamespaces: Function },
22
+  };
23
+
24
+  declare function loadNamespaces(props: NamespacesProps): Promise<void>;
25
+
26
+  declare type ProviderProps = { i18n: Object, children: React$Element<any> };
27
+
28
+  declare var I18nextProvider: Class<React$Component<void, ProviderProps, void>>;
29
+
30
+  declare type InterpolateProps = {
31
+    children?: React$Element<any>,
32
+    className?: string,
33
+  };
34
+
35
+  declare var Interpolate: Class<React$Component<void, InterpolateProps, void>>;
36
+}

+ 2
- 2
package.json 查看文件

38
     "react": "15.4.2",
38
     "react": "15.4.2",
39
     "react-dom": "15.4.2",
39
     "react-dom": "15.4.2",
40
     "react-i18next": "2.2.0",
40
     "react-i18next": "2.2.0",
41
-    "react-native": "0.41.2",
41
+    "react-native": "0.42.0",
42
     "react-native-background-timer": "1.0.0",
42
     "react-native-background-timer": "1.0.0",
43
     "react-native-immersive": "0.0.4",
43
     "react-native-immersive": "0.0.4",
44
     "react-native-keep-awake": "2.0.2",
44
     "react-native-keep-awake": "2.0.2",
74
     "eslint-plugin-react-native": "2.2.1",
74
     "eslint-plugin-react-native": "2.2.1",
75
     "expose-loader": "0.7.1",
75
     "expose-loader": "0.7.1",
76
     "file-loader": "0.10.1",
76
     "file-loader": "0.10.1",
77
-    "flow-bin": "0.37.4",
77
+    "flow-bin": "0.38.0",
78
     "haste-resolver-webpack-plugin": "0.2.2",
78
     "haste-resolver-webpack-plugin": "0.2.2",
79
     "imports-loader": "0.7.1",
79
     "imports-loader": "0.7.1",
80
     "jshint": "2.9.4",
80
     "jshint": "2.9.4",

+ 1
- 1
react/features/base/util/randomUtil.js 查看文件

30
  * @param {Array|string} arr - Source.
30
  * @param {Array|string} arr - Source.
31
  * @returns {Array|string} Array element or string character.
31
  * @returns {Array|string} Array element or string character.
32
  */
32
  */
33
-export function randomElement(arr: [any] | string) {
33
+export function randomElement(arr: Array<*> | string) {
34
     return arr[randomInt(0, arr.length - 1)];
34
     return arr[randomInt(0, arr.length - 1)];
35
 }
35
 }
36
 
36
 

Loading…
取消
儲存