[TS] Don't use specific PlatformConstants import

This commit is contained in:
Beef 2023-01-14 16:24:14 +00:00
parent 6764b07727
commit 66e84ecd8d

4
src/def.d.ts vendored
View file

@ -1,6 +1,6 @@
import * as _spitroast from "spitroast"; import * as _spitroast from "spitroast";
import _React from "react"; import _React from "react";
import _RN, { PlatformConstants } from "react-native"; import _RN from "react-native";
import _AsyncStorage from "@react-native-async-storage/async-storage"; import _AsyncStorage from "@react-native-async-storage/async-storage";
type MetroModules = { [id: number]: any }; type MetroModules = { [id: number]: any };
@ -64,7 +64,7 @@ interface Settings {
developerSettings: boolean; developerSettings: boolean;
} }
interface RNConstants extends PlatformConstants { interface RNConstants extends _RN.PlatformConstants {
// Android // Android
Version: number; Version: number;
Release: string; Release: string;