1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-23 09:38:52 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

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:
sunny.ll
2025-09-10 23:07:33 +08:00
parent 584f698329
commit a82b75f51f
3 changed files with 5 additions and 4 deletions

View File

@@ -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": {

View File

@@ -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>();

View File

@@ -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"]
}