React-native
migration
byalexbit-codemod

React Native/74/Migrate To Fire Interval Seconds

/icons/calendar.svg

Last update

Jul 24, 2024

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