mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b5b4a70410
Summary: After monitoring scuba for a few days, previous fixes(D23301714 D23331828 (https://github.com/facebook/react-native/commit/07a597ad185c8c31ac38bdd4d022b0b880d02859)) don't work as expected. I managed to test this issue on a Xiaomi device, the crash didn't happen but the there was a popup "Frequetly used email" on top of email edit text: {F317216473} Getting rid of the popup probably be the right fix. For more context see https://github.com/facebook/react-native/issues/27204 Changelog: [Android] - Set caretHidden to true to fix the Xiaomi crash Reviewed By: mdvacca Differential Revision: D23451929 fbshipit-source-id: 521931422f3a46a056a9faa4b10fe93cf4732db0
41 lines
914 B
JavaScript
41 lines
914 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import type {TurboModule} from '../TurboModule/RCTExport';
|
|
import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';
|
|
|
|
export interface Spec extends TurboModule {
|
|
+getConstants: () => {|
|
|
isTesting: boolean,
|
|
reactNativeVersion: {|
|
|
major: number,
|
|
minor: number,
|
|
patch: number,
|
|
prerelease: ?number,
|
|
|},
|
|
Version: number,
|
|
Release: string,
|
|
Serial: string,
|
|
Fingerprint: string,
|
|
Model: string,
|
|
ServerHost?: string,
|
|
uiMode: string,
|
|
Brand: string,
|
|
Manufacturer: string,
|
|
|};
|
|
+getAndroidID: () => string;
|
|
}
|
|
|
|
export default (TurboModuleRegistry.getEnforcing<Spec>(
|
|
'PlatformConstants',
|
|
): Spec);
|