Skip to content

Commit e4f845c

Browse files
🧹 Remove deprecated PushyProvider
Co-authored-by: sunnylqm <615282+sunnylqm@users.noreply.github.com>
1 parent 72dc9e9 commit e4f845c

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎Example/expoUsePushy/App.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {StyleSheet, Text, View, TouchableOpacity, Image} from 'react-native';
66
import TestConsole from './TestConsole';
77

88
import _updateConfig from './update.json';
9-
import {PushyProvider, Pushy, usePushy} from 'react-native-update';
9+
import { UpdateProvider, Pushy, usePushy} from 'react-native-update';
1010
const {appKey} = _updateConfig.android;
1111

1212
function Home() {
@@ -214,8 +214,8 @@ const pushyClient = new Pushy({
214214

215215
export default function HomeScreen() {
216216
return (
217-
<PushyProvider client={pushyClient}>
217+
<UpdateProvider client={pushyClient}>
218218
<Home />
219-
</PushyProvider>
219+
</UpdateProvider>
220220
);
221221
}

‎src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export { Pushy, Cresc } from './client';
22
export { UpdateContext, usePushy, useUpdate } from './context';
3-
export { PushyProvider, UpdateProvider } from './provider';
3+
export { UpdateProvider } from './provider';
44
export { PushyModule, UpdateModule } from './core';

‎src/provider.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,5 +421,3 @@ export const UpdateProvider = ({
421421
);
422422
};
423423

424-
/** @deprecated Please use `UpdateProvider` instead */
425-
export const PushyProvider = UpdateProvider;

0 commit comments

Comments
 (0)