React Native/74/Migrate To Fire Interval Seconds
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
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