From 21cb3732578588f9d47ee7ddda541577ad691970 Mon Sep 17 00:00:00 2001 From: yuji Date: Fri, 24 Apr 2015 05:27:26 +0800 Subject: [PATCH] fixes #2 Solve the problem of installation. (thanks @jamwaffles) --- .gitignore | 5 +++ README.md | 12 +++-- .../contents.xcworkspacedata | 7 --- .../xcshareddata/swiper.xccheckout | 41 ------------------ .../UserInterfaceState.xcuserstate | Bin 13979 -> 0 bytes .../xcschemes/xcschememanagement.plist | 27 ------------ package.json | 9 ++-- 7 files changed, 16 insertions(+), 85 deletions(-) delete mode 100644 examples/swiper.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 examples/swiper.xcodeproj/project.xcworkspace/xcshareddata/swiper.xccheckout delete mode 100644 examples/swiper.xcodeproj/project.xcworkspace/xcuserdata/yuji.xcuserdatad/UserInterfaceState.xcuserstate delete mode 100644 examples/swiper.xcodeproj/xcuserdata/yuji.xcuserdatad/xcschemes/xcschememanagement.plist diff --git a/.gitignore b/.gitignore index b9521334..dafc246e 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,8 @@ build/Release # Dependency directory # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git /node_modules + +# Xcode +*.xcuserstate +examples/swiper.xcodeproj/project.xcworkspace/ +examples/swiper.xcodeproj/xcuserdata diff --git a/README.md b/README.md index 7472ecee..5bb37638 100644 --- a/README.md +++ b/README.md @@ -24,15 +24,19 @@ The best Swiper component for React Native. - [x] Autoplay -- [x] Design logo - -- [x] More usage cases +## Changelog & TODO - [ ] More switch effects - [ ] Unit tests -- [ ] Check typo - Need Improve My English :( +- [ ] Check typo + +- [ ] Optimal performance when `` re-render + +- [ ] Making the `width` / `height` optional prop, use `measure` function instead + +- [x] **1.0.4** fixes #2 Solve the problem of installation. (thanks @jamwaffles) ## Show Cases diff --git a/examples/swiper.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/examples/swiper.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a6..00000000 --- a/examples/swiper.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/examples/swiper.xcodeproj/project.xcworkspace/xcshareddata/swiper.xccheckout b/examples/swiper.xcodeproj/project.xcworkspace/xcshareddata/swiper.xccheckout deleted file mode 100644 index dacdbe21..00000000 --- a/examples/swiper.xcodeproj/project.xcworkspace/xcshareddata/swiper.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - 3AA1DE03-AAD5-4D33-AB53-EEC0BBF3DA71 - IDESourceControlProjectName - swiper - IDESourceControlProjectOriginsDictionary - - FDA5A340A950B2235BF6439BE4A781D707E7440C - https://github.com/leecade/react-native-swiper.git - - IDESourceControlProjectPath - examples/swiper.xcodeproj - IDESourceControlProjectRelativeInstallPathDictionary - - FDA5A340A950B2235BF6439BE4A781D707E7440C - ../../.. - - IDESourceControlProjectURL - https://github.com/leecade/react-native-swiper.git - IDESourceControlProjectVersion - 111 - IDESourceControlProjectWCCIdentifier - FDA5A340A950B2235BF6439BE4A781D707E7440C - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - FDA5A340A950B2235BF6439BE4A781D707E7440C - IDESourceControlWCCName - react-native-swiper - - - - diff --git a/examples/swiper.xcodeproj/project.xcworkspace/xcuserdata/yuji.xcuserdatad/UserInterfaceState.xcuserstate b/examples/swiper.xcodeproj/project.xcworkspace/xcuserdata/yuji.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 040c0a601d99875307b75900bfe013f00625adbf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13979 zcmch734Bw<7WXW-ZJIRA?GlnnxsHQ9upVb zS45uAjkYWzDvBs5@)Qvf5s}pe6~%qU6;V;Xb90;00{Y(Xd*AP4X_J{VXU@zy^FPZ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/yuji.xcuserdatad/xcschemes/xcschememanagement.plist b/examples/swiper.xcodeproj/xcuserdata/yuji.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 6a2ebe18..00000000 --- a/examples/swiper.xcodeproj/xcuserdata/yuji.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,27 +0,0 @@ - - - - - SchemeUserState - - swiper.xcscheme_^#shared#^_ - - orderHint - 0 - - - SuppressBuildableAutocreation - - 00E356ED1AD99517003FC87E - - primary - - - 13B07F861A680F5B00A75B9A - - primary - - - - - diff --git a/package.json b/package.json index 786a80d8..0fa06d8a 100644 --- a/package.json +++ b/package.json @@ -5,15 +5,12 @@ "react-native", "ios" ], - "version": "1.0.3", + "version": "1.0.4", "description": "Swiper component for React Native.", "main": "dist/index.js", "scripts": { - "start": "babel src --out-dir dist", - "watch": "babel src --out-dir dist --watch" - }, - "bin": { - "babel": "./bin/babel" + "start": "node_modules/.bin/babel src --out-dir dist", + "watch": "node_modules/.bin/babel src --out-dir dist --watch" }, "repository": { "type": "git",