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

Deprecate usePushy and PushyProvider; update exports in context and index files

This commit is contained in:
sunnylqm
2025-03-15 23:43:13 +08:00
parent 135e0c5595
commit 828740823d
3 changed files with 3 additions and 3 deletions

View File

@@ -43,6 +43,5 @@ export const UpdateContext = createContext<{
export const useUpdate = () => useContext(UpdateContext);
/** @deprecated Please use `useUpdate` instead */
export const usePushy = useUpdate;
export const useCresc = useUpdate;

View File

@@ -1,4 +1,4 @@
export { Pushy, Cresc } from './client';
export { UpdateContext, usePushy, useCresc, useUpdate } from './context';
export { UpdateContext, usePushy, useUpdate } from './context';
export { PushyProvider, UpdateProvider } from './provider';
export { PushyModule, UpdateModule } from './core';

View File

@@ -365,4 +365,5 @@ export const UpdateProvider = ({
);
};
/** @deprecated Please use `UpdateProvider` instead */
export const PushyProvider = UpdateProvider;