
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
react-native-ios-widget
Advanced tools
Expo config plugin to add widgets and live activities to a React Native app
The widgets still need to be written in Swift (I think there's no way around that). But you can simply add a folder with Swift files to a React Native project (see folder _widgets in this repository for examples) and then add the plugin via:
npx expo install react-native-widget-extension
And add the following config to app.json (where widgetsFolder is the path to the folder with the Swift files):
"expo": {
"name": "my-app",
"plugins": [
[
"react-native-widget-extension",
{ "frequentUpdates": true, "widgetsFolder": "_widgets/PizzaDelivery" },
],
]
}
Then in React land, you can use the following:
import {
areActivitiesEnabled,
startActivity,
updateActivity,
endActivity,
} from "react-native-widget-extension";
startActivity(3, "4343", "$32.23", driverName, 47, 43);
For a minimal example app, see the folder example. Example code for widgets can be found in the **_widgets__ folder.
Some background on how the PizzaDelivery example works:
By default, this module adds a minimum deployment target of iOS 16.2, because otherwise Swift compilation fails if you try to use Live Activities. If you want to support earliert versions of iOS, you can manually set the deployment target via plugin config:
"expo": {
"name": "my-app",
"plugins": [
[
"react-native-widget-extension",
{ "deploymentTarget": "14.0" },
],
]
}
If you do this and you still use Live Activities in Swift, you have to make sure to guard the code that can only run on iOS 16.2 and later like this:
import SwiftUI
import WidgetKit
@main
struct PizzaDeliveryWidgetBundle: WidgetBundle {
var body: some Widget {
PizzaDeliveryWidgets()
if #available(iOS 16.2, *) {
PizzaDeliveryLiveActivity()
}
}
}
and
@available(iOS 16.2, *)
struct LockScreenLiveActivityView: View {
...
}
FAQs
Expo config plugin to add widgets to a React Native app
The npm package react-native-ios-widget receives a total of 1 weekly downloads. As such, react-native-ios-widget popularity was classified as not popular.
We found that react-native-ios-widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.