diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 16fd36d..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitignore b/.gitignore index 5988a1e..b216993 100755 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ RCTSVG.xcodeproj/xcuserdata RCTSVG.xcodeproj/project.xcworkspace .npm-debug.log +.DS_Store \ No newline at end of file diff --git a/RCTTableView.xcodeproj/project.xcworkspace/xcshareddata/RCTTableView.xccheckout b/RCTTableView.xcodeproj/project.xcworkspace/xcshareddata/RCTTableView.xccheckout index 343d717..38e7693 100644 --- a/RCTTableView.xcodeproj/project.xcworkspace/xcshareddata/RCTTableView.xccheckout +++ b/RCTTableView.xcodeproj/project.xcworkspace/xcshareddata/RCTTableView.xccheckout @@ -14,11 +14,11 @@ https://github.com/aksonov/react-native-tableview.git IDESourceControlProjectPath - examples/TableViewDemo/node_modules/react-native-tableview/RCTTableView.xcodeproj + RCTTableView.xcodeproj IDESourceControlProjectRelativeInstallPathDictionary 315E056E8429F8CF8B34998964C5F52485938FC8 - ../../../../../.. + ../.. IDESourceControlProjectURL https://github.com/aksonov/react-native-tableview.git diff --git a/RCTTableView.xcodeproj/project.xcworkspace/xcuserdata/aksonov.xcuserdatad/UserInterfaceState.xcuserstate b/RCTTableView.xcodeproj/project.xcworkspace/xcuserdata/aksonov.xcuserdatad/UserInterfaceState.xcuserstate index b04b17d..f5a75b2 100644 Binary files a/RCTTableView.xcodeproj/project.xcworkspace/xcuserdata/aksonov.xcuserdatad/UserInterfaceState.xcuserstate and b/RCTTableView.xcodeproj/project.xcworkspace/xcuserdata/aksonov.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/RCTTableView.xcodeproj/xcuserdata/aksonov.xcuserdatad/xcschemes/RCTSvg.xcscheme b/RCTTableView.xcodeproj/xcuserdata/aksonov.xcuserdatad/xcschemes/RCTTableView.xcscheme similarity index 100% rename from RCTTableView.xcodeproj/xcuserdata/aksonov.xcuserdatad/xcschemes/RCTSvg.xcscheme rename to RCTTableView.xcodeproj/xcuserdata/aksonov.xcuserdatad/xcschemes/RCTTableView.xcscheme diff --git a/RCTTableView.xcodeproj/xcuserdata/aksonov.xcuserdatad/xcschemes/xcschememanagement.plist b/RCTTableView.xcodeproj/xcuserdata/aksonov.xcuserdatad/xcschemes/xcschememanagement.plist index d7b137f..3e44246 100644 --- a/RCTTableView.xcodeproj/xcuserdata/aksonov.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/RCTTableView.xcodeproj/xcuserdata/aksonov.xcuserdatad/xcschemes/xcschememanagement.plist @@ -4,7 +4,7 @@ SchemeUserState - RCTSvg.xcscheme + RCTTableView.xcscheme orderHint 1 diff --git a/examples/.DS_Store b/examples/.DS_Store deleted file mode 100644 index 8721fb1..0000000 Binary files a/examples/.DS_Store and /dev/null differ diff --git a/examples/TableViewDemo/.idea/workspace.xml b/examples/TableViewDemo/.idea/workspace.xml index 57998d3..d3b375e 100644 --- a/examples/TableViewDemo/.idea/workspace.xml +++ b/examples/TableViewDemo/.idea/workspace.xml @@ -337,7 +337,7 @@ - + diff --git a/examples/TableViewDemo/TableViewDemo.xcodeproj/project.pbxproj b/examples/TableViewDemo/TableViewDemo.xcodeproj/project.pbxproj index 60542a2..27a183c 100755 --- a/examples/TableViewDemo/TableViewDemo.xcodeproj/project.pbxproj +++ b/examples/TableViewDemo/TableViewDemo.xcodeproj/project.pbxproj @@ -515,7 +515,7 @@ "$(inherited)", /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, "$(SRCROOT)/node_modules/react-native/React/**", - "$(SRCROOT)/node_modules/react-native-tableview/**", + "$(SRCROOT)/node_modules/react-native-tableview", ); INFOPLIST_FILE = iOS/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -532,7 +532,7 @@ "$(inherited)", /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, "$(SRCROOT)/node_modules/react-native/React/**", - "$(SRCROOT)/node_modules/react-native-tableview/**", + "$(SRCROOT)/node_modules/react-native-tableview", ); INFOPLIST_FILE = iOS/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/examples/TableViewDemo/components/ContactList.js b/examples/TableViewDemo/components/ContactList.js deleted file mode 100755 index fe0fb25..0000000 --- a/examples/TableViewDemo/components/ContactList.js +++ /dev/null @@ -1,22 +0,0 @@ -var React = require('react-native') -var {Text, ScrollView, View} = React - -module.exports = React.createClass({ - render(){ - if(this.props.contacts.lengh === 0){ - return No Contacts Loaded... - } - return ( - - {this.props.contacts.map((contact) => { - return ( - - {contact.recordID} - {contact.firstName} - {contact.lastName} - {JSON.stringify(contact.emailAddresses)} - - ) - })} - - ) - } -}) diff --git a/examples/TableViewDemo/index.ios.js b/examples/TableViewDemo/index.ios.js index 7853643..3426113 100755 --- a/examples/TableViewDemo/index.ios.js +++ b/examples/TableViewDemo/index.ios.js @@ -14,7 +14,7 @@ class TableViewExample extends React.Component { return ( console.log(event.nativeEvent)}> + onPress={(event) => alert(JSON.stringify(event))}> All states ); @@ -25,7 +25,7 @@ class TableViewExample extends React.Component { return ( console.log(event.nativeEvent)}/> + onPress={(event) => alert(JSON.stringify(event))}/> ); } render3(){ @@ -33,7 +33,7 @@ class TableViewExample extends React.Component { console.log(event.nativeEvent)}> + onPress={(event) => alert(JSON.stringify(event))}>
Item 1 Item 2 diff --git a/examples/TableViewDemo/package.json b/examples/TableViewDemo/package.json index 356b756..fc9baef 100644 --- a/examples/TableViewDemo/package.json +++ b/examples/TableViewDemo/package.json @@ -6,6 +6,7 @@ "start": "node_modules/react-native/packager/packager.sh" }, "dependencies": { - "react-native": "^0.8.0" + "react-native": "^0.8.0", + "react-native-tableview": "^1.0.3" } } diff --git a/npm-debug.log b/npm-debug.log deleted file mode 100644 index 2028a41..0000000 --- a/npm-debug.log +++ /dev/null @@ -1,99 +0,0 @@ -0 info it worked if it ends with ok -1 verbose cli [ '/Users/aksonov/.nvm/versions/io.js/v2.5.0/bin/iojs', -1 verbose cli '/Users/aksonov/.nvm/versions/io.js/v2.5.0/bin/npm', -1 verbose cli 'publish', -1 verbose cli './' ] -2 info using npm@2.13.2 -3 info using node@v2.5.0 -4 verbose publish [ './' ] -5 silly cache add args [ './', null ] -6 verbose cache add spec ./ -7 silly cache add parsed spec { raw: './', -7 silly cache add scope: null, -7 silly cache add name: null, -7 silly cache add rawSpec: './', -7 silly cache add spec: '/Users/aksonov/Documents/react-native-tableview', -7 silly cache add type: 'directory' } -8 verbose addLocalDirectory /Users/aksonov/.npm/react-native-tableview/1.0.2/package.tgz not in flight; packing -9 verbose tar pack [ '/Users/aksonov/.npm/react-native-tableview/1.0.2/package.tgz', -9 verbose tar pack '/Users/aksonov/Documents/react-native-tableview' ] -10 verbose tarball /Users/aksonov/.npm/react-native-tableview/1.0.2/package.tgz -11 verbose folder /Users/aksonov/Documents/react-native-tableview -12 info prepublish react-native-tableview@1.0.2 -13 verbose addLocalTarball adding from inside cache /Users/aksonov/.npm/react-native-tableview/1.0.2/package.tgz -14 silly cache afterAdd react-native-tableview@1.0.2 -15 verbose afterAdd /Users/aksonov/.npm/react-native-tableview/1.0.2/package/package.json not in flight; writing -16 verbose afterAdd /Users/aksonov/.npm/react-native-tableview/1.0.2/package/package.json written -17 silly publish { name: 'react-native-tableview', -17 silly publish version: '1.0.2', -17 silly publish description: 'Native iOS TableView wrapper for React Native', -17 silly publish main: 'index.js', -17 silly publish scripts: { test: 'echo "Error: no test specified" && exit 1' }, -17 silly publish repository: -17 silly publish { type: 'git', -17 silly publish url: 'git+https://github.com/aksonov/react-native-tableview.git' }, -17 silly publish keywords: [ 'react-native', 'UITableView', 'iOS' ], -17 silly publish author: -17 silly publish { name: 'Pavlo Aksonov', -17 silly publish email: 'akso.nov@gmail.com', -17 silly publish url: 'http://aksonov.com' }, -17 silly publish license: 'ISC', -17 silly publish bugs: { url: 'https://github.com/aksonov/react-native-tableview/issues' }, -17 silly publish homepage: 'https://github.com/aksonov/react-native-tableview#readme', -17 silly publish dependencies: { 'react-native': '^0.9.0' }, -17 silly publish readme: '# react-native-tableview\nNative iOS UITableView for React Native with JSON support.\n\n## Why I need to use it?\n- To display long lists of data (like country list) - built-in list view has performance issues for long lists\n- To use built-in accessory types (checkmark or disclosure indicator)\n- Automatic scroll to initial selected value during component initialization\n- Automatic item selection with "checkmark" with old item de-selection (optionally), see demo, useful to select country/state/etc.\n- Native JSON support for datasource. If you need to display large dataset, generated Javascript will became very large and impact js loading time. To solve this problem the component could read JSON directly from app bundle without JS!\n- Filter JSON datasources using NSPredicate syntax. For example you could select states for given country only (check demo)\n\n## Supports UITableView styles\n- UITableViewStylePlain (TableView.Consts.Style.Plain)\n- UITableViewStyleGrouped (TableView.Consts.Style.Grouped)\n\n## Supports UITableViewCell styles\n- UITableViewCellStyleDefault (TableView.Consts.CellStyle.Default)\n- UITableViewCellStyleValue1 (TableView.Consts.CellStyle.Value1)\n- UITableViewCellStyleValue2 (TableView.Consts.CellStyle.Value2)\n- UITableViewCellStyleSubtitle (TableView.Consts.CellStyle.Subtitle)\n\n## Supports accessory types\n- UITableViewCellAccessoryDisclosureIndicator ("arrow" attribute for TableView.Item or TableView.Section)\n- UITableViewCellAccessoryCheckmark ("selected" attribute for TableView.Item)\n\n## Example 1\n![demo](https://cloud.githubusercontent.com/assets/1321329/9329083/cc77b4e0-45ae-11e5-9919-34f12e6d407c.gif)\n\n```\n\'use strict\';\n\nvar React = require(\'react-native\');\nvar { AppRegistry } = React;\nvar TableView = require(\'react-native-tableview\');\nvar Section = TableView.Section;\nvar Item = TableView.Item;\n\nclass TableViewExample extends React.Component {\n render(){\n return (\n console.log(event.nativeEvent)}>\n
\n Item 1\n Item 2\n Item 3\n Item 4\n Item 5\n Item 6\n Item 7\n Item 8\n Item 9\n Item 10\n Item 11\n Item 12\n Item 13\n Item 14\n Item 15\n Item 16\n Item 17\n Item 18\n Item 19\n Item 20\n Item 21\n Item 22\n Item 23\n Item 24\n Item 25\n Item 26\n Item 27\n Item 28\n Item 29\n Item 30\n
\n
\n Item 1\n Item 2\n Item 3\n
\n
\n );\n }\n}\n\nAppRegistry.registerComponent(\'TableViewExample\', () => TableViewExample);\n```\n## Example 2 (JSON source support), reads country list JSON from app bundle and display UITableView with selected value checkmarked\n![demo2](https://cloud.githubusercontent.com/assets/1321329/9335801/7a4d42ca-45d6-11e5-860c-969db80413ca.gif)\n\n```\n render(){\n return (\n console.log(event.nativeEvent)}/>\n );\n }\n```\n\n### Example 3 (JSON filter and optional items at the beginning)\n```\n // list spanish provinces and add \'All states\' item at the beginning\n render(){\n var country = "ES";\n return (\n console.log(event.nativeEvent)}>\n All states\n \n );\n }\n```\n\n## Getting started\n1. `npm install react-native-tableview --save`\n2. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project\'s name]`\n3. add `./node_modules/react-native-tableview/RCTTableView.xcodeproj`\n4. In the XCode project navigator, select your project, select the `Build Phases` tab and in the `Link Binary With Libraries` section add **libRCTTableView.a**\n5. (optional) If you will use JSON file, add it to iOS application bundle\n6. `var TableView = require(\'react-native-tableview\')`\n', -17 silly publish readmeFilename: 'README.md', -17 silly publish gitHead: 'e61701a8e00a08d5f84322b56f0960ab1f2829ef', -17 silly publish _id: 'react-native-tableview@1.0.2', -17 silly publish _shasum: '6acf284d2e17dd1cb7e7cf273f8558c8718ef62e', -17 silly publish _from: '.' } -18 verbose getPublishConfig undefined -19 silly mapToRegistry name react-native-tableview -20 silly mapToRegistry using default registry -21 silly mapToRegistry registry https://registry.npmjs.org/ -22 silly mapToRegistry uri https://registry.npmjs.org/react-native-tableview -23 verbose publish registryBase https://registry.npmjs.org/ -24 silly publish uploading /Users/aksonov/.npm/react-native-tableview/1.0.2/package.tgz -25 verbose request uri https://registry.npmjs.org/react-native-tableview -26 verbose request sending authorization for write operation -27 info attempt registry request try #1 at 10:42:55 -28 verbose request using bearer token for auth -29 verbose request id 6d9c98d7edde9759 -30 http request PUT https://registry.npmjs.org/react-native-tableview -31 http 403 https://registry.npmjs.org/react-native-tableview -32 verbose headers { 'content-type': 'application/json', -32 verbose headers 'cache-control': 'max-age=60', -32 verbose headers 'content-length': '95', -32 verbose headers 'accept-ranges': 'bytes', -32 verbose headers date: 'Wed, 19 Aug 2015 08:42:57 GMT', -32 verbose headers via: '1.1 varnish', -32 verbose headers connection: 'keep-alive', -32 verbose headers 'x-served-by': 'cache-fra1221-FRA', -32 verbose headers 'x-cache': 'MISS', -32 verbose headers 'x-cache-hits': '0', -32 verbose headers 'x-timer': 'S1439973776.026287,VS0,VE1072' } -33 verbose request invalidating /Users/aksonov/.npm/registry.npmjs.org/react-native-tableview on PUT -34 error publish Failed PUT 403 -35 verbose stack Error: "You cannot publish over the previously published version 1.0.2." : react-native-tableview -35 verbose stack at CachingRegistryClient. (/Users/aksonov/.nvm/versions/io.js/v2.5.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:247:14) -35 verbose stack at Request._callback (/Users/aksonov/.nvm/versions/io.js/v2.5.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:170:14) -35 verbose stack at Request.self.callback (/Users/aksonov/.nvm/versions/io.js/v2.5.0/lib/node_modules/npm/node_modules/request/request.js:197:22) -35 verbose stack at emitTwo (events.js:87:13) -35 verbose stack at Request.emit (events.js:172:7) -35 verbose stack at Request. (/Users/aksonov/.nvm/versions/io.js/v2.5.0/lib/node_modules/npm/node_modules/request/request.js:1050:14) -35 verbose stack at emitOne (events.js:82:20) -35 verbose stack at Request.emit (events.js:169:7) -35 verbose stack at IncomingMessage. (/Users/aksonov/.nvm/versions/io.js/v2.5.0/lib/node_modules/npm/node_modules/request/request.js:996:12) -35 verbose stack at emitNone (events.js:72:20) -36 verbose statusCode 403 -37 verbose pkgid react-native-tableview -38 verbose cwd /Users/aksonov/Documents/react-native-tableview -39 error Darwin 14.4.0 -40 error argv "/Users/aksonov/.nvm/versions/io.js/v2.5.0/bin/iojs" "/Users/aksonov/.nvm/versions/io.js/v2.5.0/bin/npm" "publish" "./" -41 error node v2.5.0 -42 error npm v2.13.2 -43 error code E403 -44 error "You cannot publish over the previously published version 1.0.2." : react-native-tableview -45 error If you need help, you may report this error at: -45 error -46 verbose exit [ 1, true ] diff --git a/package.json b/package.json index d040a87..8da3933 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-tableview", - "version": "1.0.3", + "version": "1.0.4", "description": "Native iOS TableView wrapper for React Native", "main": "index.js", "scripts": { @@ -21,7 +21,5 @@ "url": "https://github.com/aksonov/react-native-tableview/issues" }, "homepage": "https://github.com/aksonov/react-native-tableview#readme", - "dependencies": { - "react-native": "^0.9.0" - } + "dependencies": {} }