
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-widget-picker
Advanced tools
Let users pin a widget. On devices running Android 8.0 (API level 26) and higher, launchers that let pin widgets onto their home screen
yarn add react-native-widget-picker
# or
npm install react-native-widget-picker
Edit android/app/src/main/java/com/.../MainActivity.java and add:
+import com.retyui.widgetpicker.WidgetPickerModuleImpl;
public class MainActivity extends ReactActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ WidgetPickerModuleImpl.registerWidgetClass("MyAppWidget", MyAppWidget.class);
// you can register multiple widgets ^^^
}
Kotlin MainActivity.kt example:
+import com.retyui.widgetpicker.WidgetPickerModuleImpl.Companion.registerWidgetClass
class MainActivity : ReactActivity() {
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ registerWidgetClass("MyAppWidget", MyAppWidget::class.java)
+ }
}
import {WidgetPicker} from 'react-native-widget-picker';
WidgetPicker.isRequestPinAppWidgetSupported() // true or false
// "MyAppWidget" - name from MainActivity.java or .kt
WidgetPicker.requestPinAppWidget("MyAppWidget").then((value) => {
if (value.message === "success") {
// success
}
});
MIT
FAQs
Request to pin an app widget on the current launcher
The npm package react-native-widget-picker receives a total of 182 weekly downloads. As such, react-native-widget-picker popularity was classified as not popular.
We found that react-native-widget-picker 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.