v10.5.1
This commit is contained in:
parent
3e60cfd80f
commit
ad9b0778ba
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "10.5.0",
|
"version": "10.5.1",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "src/index.ts",
|
"main": "src/index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepack": "yarn submodule && yarn lint",
|
"prepack": "yarn submodule && yarn lint",
|
||||||
"lint": "eslint \"src/*.@(ts|tsx|js|jsx)\" && tsc --noEmit",
|
"lint": "eslint \"src/*.@(ts|tsx|js|jsx)\" && tsc --noEmit",
|
||||||
|
3
src/index.native.ts
Normal file
3
src/index.native.ts
Normal 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
2
src/provider.jsx
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import React from 'react';
|
||||||
|
export const PushyProvider = ({ children }) => <>{children}</>;
|
@ -12,7 +12,7 @@ import {
|
|||||||
Platform,
|
Platform,
|
||||||
Linking,
|
Linking,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import { Pushy } from './client';
|
import { Pushy } from './client.native';
|
||||||
import {
|
import {
|
||||||
currentVersion,
|
currentVersion,
|
||||||
isFirstTime,
|
isFirstTime,
|
@ -1,2 +0,0 @@
|
|||||||
import { Fragment } from 'react';
|
|
||||||
export const PushyProvider = Fragment;
|
|
Loading…
Reference in New Issue
Block a user