React Native/74/Remove Alert Action

1.0.2Last update Jul 24, 2024
by@alexbit-codemod
React-native
migration

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