Skip to content

Commit cc32100

Browse files
committed
1.0.1
- Add an iOS fallback - Fix cmj & esm imports
1 parent 55986f0 commit cc32100

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "react-native-widget-picker",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"license": "MIT",
5-
"main": "src",
6-
"module": "src",
5+
"main": "dist/cjs",
6+
"module": "dist/mjs",
77
"react-native": "src",
88
"source": "src",
99
"peerDependencies": {

src/index.ios.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const WidgetPicker = {
2+
isRequestPinAppWidgetSupported: () => false,
3+
requestPinAppWidget: (widgetClassKey: string) => Promise.resolve({message: 'not supported on ios'})
4+
} as const

0 commit comments

Comments
 (0)