1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm 2024-04-22 23:15:29 +08:00
parent 3e60cfd80f
commit ad9b0778ba
No known key found for this signature in database
8 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,8 @@
{
"name": "react-native-update",
"version": "10.5.0",
"version": "10.5.1",
"description": "react-native hot update",
"main": "src/index.ts",
"main": "src/index",
"scripts": {
"prepack": "yarn submodule && yarn lint",
"lint": "eslint \"src/*.@(ts|tsx|js|jsx)\" && tsc --noEmit",

3
src/index.native.ts Normal file
View File

@ -0,0 +1,3 @@
export { Pushy } from './client.native';
export { PushyContext, usePushy } from './context';
export { PushyProvider } from './provider.native';

2
src/provider.jsx Normal file
View File

@ -0,0 +1,2 @@
import React from 'react';
export const PushyProvider = ({ children }) => <>{children}</>;

View File

@ -12,7 +12,7 @@ import {
Platform,
Linking,
} from 'react-native';
import { Pushy } from './client';
import { Pushy } from './client.native';
import {
currentVersion,
isFirstTime,

View File

@ -1,2 +0,0 @@
import { Fragment } from 'react';
export const PushyProvider = Fragment;