Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

react-native 0.42.0

Lyubo Marinov45e09af692d6
diff --git a/.flowconfig b/.flowconfig
index 2c0425a9ca..cae351402d 100644
--- a/.flowconfig
+++ b/.flowconfig
@@ -28,6 +28,8 @@ node_modules/react-native/flow
flow/
[options]
+emoji=true
+
module.system=haste
experimental.strict_type_args=true
@@ -40,11 +42,11 @@ suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
-suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
-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]+
+suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-8]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
+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]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
unsafe.enable_getters_and_setters=true
[version]
-^0.37.0
+^0.38.0
diff --git a/.gitignore b/.gitignore
index 7b9277cf8c..85ebf73006 100644
--- a/.gitignore
+++ b/.gitignore
@@ -53,7 +53,6 @@ yarn-error.log
#
buck-out/
\.buckd/
-android/app/libs
*.keystore
# fastlane
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index f46c1d2fd7..9525c788e7 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -29,7 +29,8 @@
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:launchMode="singleTask"
- android:name=".MainActivity">
+ android:name=".MainActivity"
+ android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
diff --git a/flow-typed/npm/react-i18next_v2.x.x.js b/flow-typed/npm/react-i18next_v2.x.x.js
new file mode 100644
index 0000000000..124c53e4b4
--- /dev/null
+++ b/flow-typed/npm/react-i18next_v2.x.x.js
@@ -0,0 +1,36 @@
+// flow-typed signature: 57cf34196930be78935a42e5c8ac3cb6
+// flow-typed version: ae6284e7b7/react-i18next_v2.x.x/flow_>=v0.36.x_<=v0.39.x
+
+declare module 'react-i18next' {
+ declare type TFunction = (key?: ?string, data?: ?Object) => string;
+ declare type Locales = string | Array<string>;
+
+ declare type StatelessComponent<P> = (props: P) => ?React$Element<any>;
+
+ declare type Comp<P> = StatelessComponent<P> | Class<React$Component<*, P, *>>;
+
+ declare type Translator<OP, P> = {
+ (component: StatelessComponent<P>): Class<React$Component<void, OP, void>>;
+ <Def, St>(component: Class<React$Component<Def, P, St>>): Class<React$Component<Def, OP, St>>;
+ }
+
+ declare function translate<OP, P>(locales: Locales): Translator<OP, P>;
+
+ declare type NamespacesProps = {
+ components: Array<Comp<*>>,
+ i18n: { loadNamespaces: Function },
+ };
+
+ declare function loadNamespaces(props: NamespacesProps): Promise<void>;
+
+ declare type ProviderProps = { i18n: Object, children: React$Element<any> };
+
+ declare var I18nextProvider: Class<React$Component<void, ProviderProps, void>>;
+
+ declare type InterpolateProps = {
+ children?: React$Element<any>,
+ className?: string,
+ };
+
+ declare var Interpolate: Class<React$Component<void, InterpolateProps, void>>;
+}
diff --git a/package.json b/package.json
index 7fd6b14311..8fc5318d31 100644
--- a/package.json
+++ b/package.json
@@ -38,7 +38,7 @@
"react": "15.4.2",
"react-dom": "15.4.2",
"react-i18next": "2.2.0",
- "react-native": "0.41.2",
+ "react-native": "0.42.0",
"react-native-background-timer": "1.0.0",
"react-native-immersive": "0.0.4",
"react-native-keep-awake": "2.0.2",
@@ -74,7 +74,7 @@
"eslint-plugin-react-native": "2.2.1",
"expose-loader": "0.7.1",
"file-loader": "0.10.1",
- "flow-bin": "0.37.4",
+ "flow-bin": "0.38.0",
"haste-resolver-webpack-plugin": "0.2.2",
"imports-loader": "0.7.1",
"jshint": "2.9.4",
diff --git a/react/features/base/util/randomUtil.js b/react/features/base/util/randomUtil.js
index e9f177136a..8ad261bdd0 100644
--- a/react/features/base/util/randomUtil.js
+++ b/react/features/base/util/randomUtil.js
@@ -30,7 +30,7 @@ export function randomAlphanumString(length: number) {
* @param {Array|string} arr - Source.
* @returns {Array|string} Array element or string character.
*/
-export function randomElement(arr: [any] | string) {
+export function randomElement(arr: Array<*> | string) {
return arr[randomInt(0, arr.length - 1)];
}