Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
React-native
migration
byalexbit-codemod
React Native/74/Remove Alert Action
Last update
Jul 24, 2024
This codemod removes references to deprecated alertAction
.
Before:
const alertAction = 'view';PushNotificationIOS.presentLocalNotification({ alertBody: 'body', alertAction });
After:
PushNotificationIOS.presentLocalNotification({ alertBody: 'body' });
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community