File tree Expand file tree Collapse file tree 8 files changed +260
-318
lines changed Expand file tree Collapse file tree 8 files changed +260
-318
lines changed Original file line number Diff line number Diff line change 1- # react-native-context-menu
1+ # react-native-context-menu-view
22
33Use native context menu functionality from React Native. On iOS this uses ` UIMenu ` functionality, and on Android it uses a ` PopUpMenu ` .
44
55## Getting started
66
7- ` $ npm install react-native-context-menu --save `
7+ ` $ npm install react-native-context-menu-view --save `
88
99### Mostly automatic installation
1010
@@ -15,7 +15,7 @@ pod install
1515
1616## Usage
1717``` javascript
18- import ContextMenu from ' react-native-context-menu' ;
18+ import ContextMenu from ' react-native-context-menu-view ' ;
1919
2020// TODO: What to do with the module?
2121```
Original file line number Diff line number Diff line change 11import React , { useState } from 'react' ;
22import { SafeAreaView , View , StyleSheet } from 'react-native' ;
3- import ContextMenu from 'react-native-context-menu' ;
3+ import ContextMenu from 'react-native-context-menu-view ' ;
44
55const App = ( ) => {
66 const [ color , setColor ] = useState ( 'blue' ) ;
Original file line number Diff line number Diff line change 1212 "dependencies" : {
1313 "react" : " 16.11.0" ,
1414 "react-native" : " 0.62.2" ,
15- "react-native-context-menu" : " link:../"
15+ "react-native-context-menu-view " : " link:../"
1616 },
1717 "devDependencies" : {
1818 "@babel/core" : " ^7.9.0" ,
Load Diff Large diffs are not rendered by default.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
2- "name" : " react-native-context-menu" ,
3- "title" : " React Native Context Menu" ,
2+ "name" : " react-native-context-menu-view " ,
3+ "title" : " React Native Context Menu View " ,
44 "version" : " 1.0.0" ,
55 "description" : " TODO" ,
66 "main" : " index.js" ,
99 },
1010 "repository" : {
1111 "type" : " git" ,
12- "url" : " git+https://github.com/mpiannucci/react-native-context-menu.git" ,
13- "baseUrl" : " https://github.com/mpiannucci/react-native-context-menu"
12+ "url" : " git+https://github.com/mpiannucci/react-native-context-menu-view .git" ,
13+ "baseUrl" : " https://github.com/mpiannucci/react-native-context-menu-view "
1414 },
1515 "keywords" : [
1616 " react-native"
Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ require "json"
33package = JSON . parse ( File . read ( File . join ( __dir__ , "package.json" ) ) )
44
55Pod ::Spec . new do |s |
6- s . name = "react-native-context-menu"
6+ s . name = "react-native-context-menu-view "
77 s . version = package [ "version" ]
88 s . summary = package [ "description" ]
99 s . description = <<-DESC
10- react-native-context-menu
10+ react-native-context-menu-view
1111 DESC
12- s . homepage = "https://github.com/mpiannucci/react-native-context-menu"
12+ s . homepage = "https://github.com/mpiannucci/react-native-context-menu-view "
1313 s . license = "MIT"
1414 # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
1515 s . authors = { "Matthew Iannucci" => "mpiannucci@gmail.com" }
1616 s . platforms = { :ios => "9.0" }
17- s . source = { :git => "https://github.com/mpiannucci/react-native-context-menu.git" , :tag => "#{ s . version } " }
17+ s . source = { :git => "https://github.com/mpiannucci/react-native-context-menu-view .git" , :tag => "#{ s . version } " }
1818
1919 s . source_files = "ios/**/*.{h,m,swift}"
2020 s . requires_arc = true
You can’t perform that action at this time.
0 commit comments