React Native/74/Migrate To Fire Interval Seconds
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