diff --git a/README.md b/README.md index 46f5d6d..92cfc3c 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,15 @@ npm install react-native-widget-picker Edit `android/app/src/main/java/com/.../MainActivity.java` and add: ```diff ++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 ^^^ + // you can register multiple widgets ^^^ } ``` @@ -41,7 +43,7 @@ import {WidgetPicker} from 'react-native-widget-picker'; WidgetPicker.isRequestPinAppWidgetSupported() // true or false -WidgetPicker.requestPinAppWidget("MyAppWidget").then((value) => { +WidgetPicker.requestPinAppWidget("MyAppWidget").then((value) => { // "MyAppWidget" - name from MainActivity.java if (value.message === "success") { // success } diff --git a/package.json b/package.json index fee7e8e..27d50b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-widget-picker", - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "main": "dist/cjs", "module": "dist/mjs",