React Native/74/Migrate To Fire Interval Seconds

1.0.3Last update Jul 24, 2024
by@alexbit-codemod
React-native
migration

This codemod migrates PushNotificationIOS.scheduleLocalNotification deprecated repeatInterval to fireIntervalSeconds.

Further manual changes are required: firing multiple notifications using fireDate or fireIntervalSeconds.

Before:

PushNotificationIOS.scheduleLocalNotification({
repeatInterval: 'minute',
});

After:

PushNotificationIOS.scheduleLocalNotification({
fireIntervalSeconds: 60,
});

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now