소스 검색

react-native 0.42.0

j8
Lyubo Marinov 8 년 전
부모
커밋
45e09af692
6개의 변경된 파일46개의 추가작업 그리고 8개의 파일을 삭제
  1. 5
    3
      .flowconfig
  2. 0
    1
      .gitignore
  3. 2
    1
      android/app/src/main/AndroidManifest.xml
  4. 36
    0
      flow-typed/npm/react-i18next_v2.x.x.js
  5. 2
    2
      package.json
  6. 1
    1
      react/features/base/util/randomUtil.js

+ 5
- 3
.flowconfig 파일 보기

@@ -28,6 +28,8 @@ node_modules/react-native/flow
28 28
 flow/
29 29
 
30 30
 [options]
31
+emoji=true
32
+
31 33
 module.system=haste
32 34
 
33 35
 experimental.strict_type_args=true
@@ -40,11 +42,11 @@ suppress_type=$FlowIssue
40 42
 suppress_type=$FlowFixMe
41 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 47
 suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
46 48
 
47 49
 unsafe.enable_getters_and_setters=true
48 50
 
49 51
 [version]
50
-^0.37.0
52
+^0.38.0

+ 0
- 1
.gitignore 파일 보기

@@ -53,7 +53,6 @@ yarn-error.log
53 53
 #
54 54
 buck-out/
55 55
 \.buckd/
56
-android/app/libs
57 56
 *.keystore
58 57
 
59 58
 # fastlane

+ 2
- 1
android/app/src/main/AndroidManifest.xml 파일 보기

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

+ 36
- 0
flow-typed/npm/react-i18next_v2.x.x.js 파일 보기

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

+ 1
- 1
react/features/base/util/randomUtil.js 파일 보기

@@ -30,7 +30,7 @@ export function randomAlphanumString(length: number) {
30 30
  * @param {Array|string} arr - Source.
31 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 34
     return arr[randomInt(0, arr.length - 1)];
35 35
 }
36 36
 

Loading…
취소
저장