mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-23 09:38:52 +08:00
bump version to 10.31.0-beta.1, update TypeScript configuration to include .ts and .tsx files, and initialize stateListener with undefined
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-update",
|
||||
"version": "10.31.0-beta.0",
|
||||
"version": "10.31.0-beta.1",
|
||||
"description": "react-native hot update",
|
||||
"main": "src/index",
|
||||
"scripts": {
|
||||
|
@@ -35,7 +35,7 @@ export const UpdateProvider = ({
|
||||
client = useRef(client).current;
|
||||
const { options } = client;
|
||||
|
||||
const stateListener = useRef<NativeEventSubscription>();
|
||||
const stateListener = useRef<NativeEventSubscription>(undefined);
|
||||
const [updateInfo, setUpdateInfo] = useState<CheckResult>();
|
||||
const updateInfoRef = useRef(updateInfo);
|
||||
const [progress, setProgress] = useState<ProgressData>();
|
||||
|
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"extends": "@react-native/typescript-config/tsconfig.json",
|
||||
"include": ["src/**/*"]
|
||||
"extends": "@react-native/typescript-config",
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["**/node_modules", "**/Pods"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user