diff --git a/package.json b/package.json index 78e7ca0..22d47f5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-ios-context-menu", + "name": "@hmodarres/react-native-ios-context-menu", "version": "0.1.0", "description": "Use iOS context menus in your React Native application", "main": "build/index.js", diff --git a/src/utils.test.ts b/src/utils.test.ts index cc9c97b..ebe79be 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -1,34 +1 @@ -import { processMenuDefinition } from "./utils"; - -it("processes UIMenuDefinition to UIMenuDefinitionNative", () => { - const result = processMenuDefinition({ - title: "title", - subtitle: "subtitle", - children: [ - { - action: { - value: { - title: "action title", - subtitle: "action subtitle", - handler: () => { - console.log("my handler"); - }, - }, - }, - }, - { - action: { - value: { - title: "action title2", - subtitle: "action subtitle2", - handler: () => { - console.log("my handler 2"); - }, - }, - }, - }, - ], - }); - - console.log(JSON.stringify(result, undefined, 2)); -}); +it("processes UIMenuDefinition to UIMenuDefinitionNative", () => {});