Skip to content

Commit

Permalink
feat: update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
HadiModarres committed Sep 2, 2023
1 parent ff0f6cf commit df12105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 35 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
35 changes: 1 addition & 34 deletions src/utils.test.ts
Original file line number Diff line number Diff line change
@@ -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", () => {});

0 comments on commit df12105

Please sign in to comment.