Skip to content

Commit a82b75f

Browse files
committed
bump version to 10.31.0-beta.1, update TypeScript configuration to include .ts and .tsx files, and initialize stateListener with undefined
1 parent 584f698 commit a82b75f

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.31.0-beta.0",
3+
"version": "10.31.0-beta.1",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

src/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const UpdateProvider = ({
3535
client = useRef(client).current;
3636
const { options } = client;
3737

38-
const stateListener = useRef<NativeEventSubscription>();
38+
const stateListener = useRef<NativeEventSubscription>(undefined);
3939
const [updateInfo, setUpdateInfo] = useState<CheckResult>();
4040
const updateInfoRef = useRef(updateInfo);
4141
const [progress, setProgress] = useState<ProgressData>();

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2-
"extends": "@react-native/typescript-config/tsconfig.json",
3-
"include": ["src/**/*"]
2+
"extends": "@react-native/typescript-config",
3+
"include": ["**/*.ts", "**/*.tsx"],
4+
"exclude": ["**/node_modules", "**/Pods"]
45
}

0 commit comments

Comments
 (0)