React-native
migration
byalexbit-codemod

React Native/74/Remove Alert Action

/icons/calendar.svg

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

background illustrationGet Started Now