mirror of
https://github.com/status-im/react-native.git
synced 2025-02-20 21:28:08 +00:00
Summary: Currently, since the alertTitle is not set in UILocalNotification, the notification displays just the notification body with no title. This commit sets the alertTitle for local notifications. Issue: #14699 - In a sample RN app, created a component and added the following code to componentDidMount(): `PushNotificationIOS.scheduleLocalNotification({ fireDate: new Date(Date.now() + (30 * 1000)).toISOString(), alertTitle: 'Incoming Message', alertBody: 'Test message', soundName: 'default' })` - On running the app, the notification appears with both body and title once the component is mounted.  Closes https://github.com/facebook/react-native/pull/15381 Differential Revision: D5572606 Pulled By: shergin fbshipit-source-id: ce5d98ed595eedf51ac3da7dfd94de52cf80be3d