diff --git a/example/MeteorApp/.meteor/.finished-upgraders b/example/MeteorApp/.meteor/.finished-upgraders deleted file mode 100644 index aa60704..0000000 --- a/example/MeteorApp/.meteor/.finished-upgraders +++ /dev/null @@ -1,15 +0,0 @@ -# This file contains information which helps Meteor properly upgrade your -# app when you run 'meteor update'. You should check it into version control -# with your project. - -notices-for-0.9.0 -notices-for-0.9.1 -0.9.4-platform-file -notices-for-facebook-graph-api-2 -1.2.0-standard-minifiers-package -1.2.0-meteor-platform-split -1.2.0-cordova-changes -1.2.0-breaking-changes -1.3.0-split-minifiers-package -1.4.0-remove-old-dev-bundle-link -1.4.1-add-shell-server-package diff --git a/example/MeteorApp/.meteor/.gitignore b/example/MeteorApp/.meteor/.gitignore deleted file mode 100644 index 4083037..0000000 --- a/example/MeteorApp/.meteor/.gitignore +++ /dev/null @@ -1 +0,0 @@ -local diff --git a/example/MeteorApp/.meteor/.id b/example/MeteorApp/.meteor/.id deleted file mode 100644 index 0b50ea8..0000000 --- a/example/MeteorApp/.meteor/.id +++ /dev/null @@ -1,7 +0,0 @@ -# This file contains a token that is unique to your project. -# Check it into your repository along with the rest of this directory. -# It can be used for purposes such as: -# - ensuring you don't accidentally deploy one app on top of another -# - providing package authors with aggregated statistics - -1s8geux1xmdvk412l25x8 diff --git a/example/MeteorApp/.meteor/packages b/example/MeteorApp/.meteor/packages deleted file mode 100644 index d4e8c21..0000000 --- a/example/MeteorApp/.meteor/packages +++ /dev/null @@ -1,22 +0,0 @@ -# Meteor packages used by this project, one per line. -# Check this file (and the other files in this directory) into your repository. -# -# 'meteor add' and 'meteor remove' will edit this file for you, -# but you can also edit it by hand. - -meteor-base@1.0.4 # Packages every Meteor app needs to have -mobile-experience@1.0.4 # Packages for a great mobile UX -mongo@1.1.14 # The database Meteor supports right now -blaze-html-templates # Compile .html files into Meteor Blaze views -session@1.1.7 # Client-side reactive dictionary for your app -jquery@1.11.10 # Helpful client-side library -tracker@1.1.1 # Meteor's client-side reactive programming library - -es5-shim@4.6.15 # ECMAScript 5 compatibility for older browsers. -ecmascript@0.6.1 # Enable ECMAScript2015+ syntax in app code - -accounts-password@1.3.3 -accounts-ui@1.1.9 -standard-minifier-css -standard-minifier-js -shell-server diff --git a/example/MeteorApp/.meteor/platforms b/example/MeteorApp/.meteor/platforms deleted file mode 100644 index efeba1b..0000000 --- a/example/MeteorApp/.meteor/platforms +++ /dev/null @@ -1,2 +0,0 @@ -server -browser diff --git a/example/MeteorApp/.meteor/release b/example/MeteorApp/.meteor/release deleted file mode 100644 index 61f6c67..0000000 --- a/example/MeteorApp/.meteor/release +++ /dev/null @@ -1 +0,0 @@ -METEOR@1.4.2.3 diff --git a/example/MeteorApp/.meteor/versions b/example/MeteorApp/.meteor/versions deleted file mode 100644 index 4ee88f5..0000000 --- a/example/MeteorApp/.meteor/versions +++ /dev/null @@ -1,85 +0,0 @@ -accounts-base@1.2.14 -accounts-password@1.3.3 -accounts-ui@1.1.9 -accounts-ui-unstyled@1.1.12 -allow-deny@1.0.5 -autoupdate@1.2.11 -babel-compiler@6.13.0 -babel-runtime@1.0.1 -base64@1.0.10 -binary-heap@1.0.10 -blaze@2.1.9 -blaze-html-templates@1.0.5 -blaze-tools@1.0.10 -boilerplate-generator@1.0.11 -caching-compiler@1.1.9 -caching-html-compiler@1.0.7 -callback-hook@1.0.10 -check@1.2.4 -ddp@1.2.5 -ddp-client@1.2.9 -ddp-common@1.2.8 -ddp-rate-limiter@1.0.6 -ddp-server@1.2.10 -deps@1.0.12 -diff-sequence@1.0.7 -ecmascript@0.6.1 -ecmascript-runtime@0.3.15 -ejson@1.0.13 -email@1.1.18 -es5-shim@4.6.15 -fastclick@1.0.13 -geojson-utils@1.0.10 -hot-code-push@1.0.4 -html-tools@1.0.11 -htmljs@1.0.11 -http@1.1.8 -id-map@1.0.9 -jquery@1.11.10 -launch-screen@1.0.12 -less@2.6.5 -livedata@1.0.18 -localstorage@1.0.12 -logging@1.1.16 -meteor@1.6.0 -meteor-base@1.0.4 -minifier-css@1.2.15 -minifier-js@1.2.15 -minimongo@1.0.19 -mobile-experience@1.0.4 -mobile-status-bar@1.0.13 -modules@0.7.7 -modules-runtime@0.7.7 -mongo@1.1.14 -mongo-id@1.0.6 -npm-bcrypt@0.9.2 -npm-mongo@2.2.11_2 -observe-sequence@1.0.14 -ordered-dict@1.0.9 -promise@0.8.8 -random@1.0.10 -rate-limit@1.0.6 -reactive-dict@1.1.8 -reactive-var@1.0.11 -reload@1.1.11 -retry@1.0.9 -routepolicy@1.0.12 -service-configuration@1.0.11 -session@1.1.7 -sha@1.0.9 -shell-server@0.2.1 -spacebars@1.0.13 -spacebars-compiler@1.0.13 -srp@1.0.10 -standard-minifier-css@1.3.2 -standard-minifier-js@1.2.1 -templating@1.2.15 -templating-compiler@1.2.15 -templating-runtime@1.2.15 -templating-tools@1.0.5 -tracker@1.1.1 -ui@1.0.12 -underscore@1.0.10 -url@1.0.11 -webapp@1.3.12 -webapp-hashing@1.0.9 diff --git a/example/MeteorApp/client/MeteorApp.html b/example/MeteorApp/client/MeteorApp.html deleted file mode 100644 index ef7e87a..0000000 --- a/example/MeteorApp/client/MeteorApp.html +++ /dev/null @@ -1,15 +0,0 @@ - - MeteorApp - - - -

Welcome to Meteor!

- - {{> hello}} - {{> loginButtons}} - - - diff --git a/example/MeteorApp/client/MeteorApp.js b/example/MeteorApp/client/MeteorApp.js deleted file mode 100644 index a4f29f2..0000000 --- a/example/MeteorApp/client/MeteorApp.js +++ /dev/null @@ -1,15 +0,0 @@ -// counter starts at 0 -Session.setDefault('counter', 0); - -Template.hello.helpers({ - counter: function () { - return Session.get('counter'); - } -}); - -Template.hello.events({ - 'click button': function () { - // increment the counter when button is clicked - Session.set('counter', Session.get('counter') + 1); - } -}); diff --git a/example/MeteorApp/lib/items.js b/example/MeteorApp/lib/items.js deleted file mode 100644 index beb531a..0000000 --- a/example/MeteorApp/lib/items.js +++ /dev/null @@ -1,29 +0,0 @@ -import { Meteor } from 'meteor/meteor'; -import { Mongo } from 'meteor/mongo'; -import { check } from 'meteor/check'; - -export const Items = new Mongo.Collection('items'); - -Meteor.methods({ - removeItem(id) { - check(id, String); - Items.remove(id); - }, - addItem() { - const i = Items.find().count(); - Items.insert({ - completed: false, - createdAt: new Date(), - name: `Item #${i}` - }); - }, - updateItemName(itemId, name) { - check(itemId, String); - check(name, String); - Items.update(itemId, { - $set: { - name, - } - }); - } -}); \ No newline at end of file diff --git a/example/MeteorApp/server/publications.js b/example/MeteorApp/server/publications.js deleted file mode 100644 index 5e39d82..0000000 --- a/example/MeteorApp/server/publications.js +++ /dev/null @@ -1,5 +0,0 @@ -import { Items } from '../lib/items'; - -Meteor.publish('items', function() { - return Items.find(); -}); diff --git a/example/MeteorApp/server/seed.js b/example/MeteorApp/server/seed.js deleted file mode 100644 index 59bd0b1..0000000 --- a/example/MeteorApp/server/seed.js +++ /dev/null @@ -1,18 +0,0 @@ -import { Meteor } from 'meteor/meteor'; -import {Items} from '../lib/items'; - -Meteor.startup(function () { - if (Items.find().count() === 0) { - let i = 0; - let timestamp = (new Date()).getTime(); - while (i < 10) { - Items.insert({ - name: `Item #${i}`, - createdAt: new Date(timestamp), - complete: false - }); - timestamp += 1; // ensure unique timestamp - i += 1; - } - } -}); diff --git a/example/README.md b/example/README.md deleted file mode 100644 index 60f2171..0000000 --- a/example/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# React Native Meteor Example - -## TODO - -- [x] `connectMeteor` -- [x] `Meteor.status()` inside `getMeteorData` -- [x] `Meteor.connect()` -- [x] `Meteor.disconnect()` - -- [x] `Meteor.user()` inside `getMeteorData` -- [x] `Meteor.userId()` inside `getMeteorData` -- [x] `Meteor.loggingIn()` inside `getMeteorData` -- [x] `Meteor.loginWithPassword()` -- [x] `Meteor.logout()` -- [x] `Meteor.logoutOtherClients()` -- [x] `Accounts.createUser()` -- [x] `Accounts.changePassword()` -- [x] `Accounts.forgotPassword()` - -- [ ] `Meteor.collection(collectionName).insert()` -- [x] `Meteor.collection(collectionName).update()` -- [x] `Meteor.collection(collectionName).remove()` -- [x] `Meteor.collection(collectionName).find()` inside `getMeteorData` -- [x] `Meteor.collection(collectionName).findOne()` inside `getMeteorData` - -- [x] `Meteor.call()` -- [x] `Meteor.subscribe` inside `getMeteorData` -- [x] Subscribe ready handle - -- [x] `MeteorListView` -- [x] `MeteorComplexListView` - -- [ ] `Meteor.FSCollection(collectionName)` -- [ ] `Meteor.FSCollection('avatars').findOne()` -- [ ] `Meteor.user().profile.avatar.getFileRecord()` -- [ ] `Meteor.FSCollection('imagesFiles').insert` -- [ ] `Meteor.FSCollection('imagesFiles').update` -- [ ] `Meteor.FSCollection('imagesFiles').remove` -- [ ] `FSCollectionImagesPreloader` diff --git a/example/RNApp/.babelrc b/example/RNApp/.babelrc deleted file mode 100644 index d0cf03d..0000000 --- a/example/RNApp/.babelrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "presets": ["react-native"], - "plugins": ["transform-decorators-legacy"] -} diff --git a/example/RNApp/.buckconfig b/example/RNApp/.buckconfig deleted file mode 100644 index 934256c..0000000 --- a/example/RNApp/.buckconfig +++ /dev/null @@ -1,6 +0,0 @@ - -[android] - target = Google Inc.:Google APIs:23 - -[maven_repositories] - central = https://repo1.maven.org/maven2 diff --git a/example/RNApp/.flowconfig b/example/RNApp/.flowconfig deleted file mode 100644 index 3b261e2..0000000 --- a/example/RNApp/.flowconfig +++ /dev/null @@ -1,58 +0,0 @@ -[ignore] - -# We fork some components by platform. -.*/*[.]android.js - -# Ignore templates with `@flow` in header -.*/local-cli/generator.* - -# Ignore malformed json -.*/node_modules/y18n/test/.*\.json - -# Ignore the website subdir -/website/.* - -# Ignore BUCK generated dirs -/\.buckd/ - -# Ignore unexpected extra @providesModule -.*/node_modules/commoner/test/source/widget/share.js - -# Ignore duplicate module providers -# For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root -.*/Libraries/react-native/React.js -.*/Libraries/react-native/ReactNative.js -.*/node_modules/jest-runtime/build/__tests__/.* - -[include] - -[libs] -node_modules/react-native/Libraries/react-native/react-native-interface.js -node_modules/react-native/flow -flow/ - -[options] -module.system=haste - -esproposal.class_static_fields=enable -esproposal.class_instance_fields=enable - -experimental.strict_type_args=true - -munge_underscores=true - -module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' -module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' - -suppress_type=$FlowIssue -suppress_type=$FlowFixMe -suppress_type=$FixMe - -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-3]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-3]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ -suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy - -unsafe.enable_getters_and_setters=true - -[version] -^0.33.0 diff --git a/example/RNApp/.gitignore b/example/RNApp/.gitignore deleted file mode 100644 index eb1535e..0000000 --- a/example/RNApp/.gitignore +++ /dev/null @@ -1,41 +0,0 @@ -# OSX -# -.DS_Store - -# Xcode -# -build/ -*.pbxuser -!default.pbxuser -*.mode1v3 -!default.mode1v3 -*.mode2v3 -!default.mode2v3 -*.perspectivev3 -!default.perspectivev3 -xcuserdata -*.xccheckout -*.moved-aside -DerivedData -*.hmap -*.ipa -*.xcuserstate -project.xcworkspace - -# Android/IJ -# -*.iml -.idea -.gradle -local.properties - -# node.js -# -node_modules/ -npm-debug.log - -# BUCK -buck-out/ -\.buckd/ -android/app/libs -android/keystores/debug.keystore diff --git a/example/RNApp/.watchmanconfig b/example/RNApp/.watchmanconfig deleted file mode 100644 index 9e26dfe..0000000 --- a/example/RNApp/.watchmanconfig +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/example/RNApp/android/app/BUCK b/example/RNApp/android/app/BUCK deleted file mode 100644 index f4c62bc..0000000 --- a/example/RNApp/android/app/BUCK +++ /dev/null @@ -1,66 +0,0 @@ -import re - -# To learn about Buck see [Docs](https://buckbuild.com/). -# To run your application with Buck: -# - install Buck -# - `npm start` - to start the packager -# - `cd android` -# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` -# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck -# - `buck install -r android/app` - compile, install and run application -# - -lib_deps = [] -for jarfile in glob(['libs/*.jar']): - name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) - lib_deps.append(':' + name) - prebuilt_jar( - name = name, - binary_jar = jarfile, - ) - -for aarfile in glob(['libs/*.aar']): - name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) - lib_deps.append(':' + name) - android_prebuilt_aar( - name = name, - aar = aarfile, - ) - -android_library( - name = 'all-libs', - exported_deps = lib_deps -) - -android_library( - name = 'app-code', - srcs = glob([ - 'src/main/java/**/*.java', - ]), - deps = [ - ':all-libs', - ':build_config', - ':res', - ], -) - -android_build_config( - name = 'build_config', - package = 'com.rnapp', -) - -android_resource( - name = 'res', - res = 'src/main/res', - package = 'com.rnapp', -) - -android_binary( - name = 'app', - package_type = 'debug', - manifest = 'src/main/AndroidManifest.xml', - keystore = '//android/keystores:debug', - deps = [ - ':app-code', - ], -) diff --git a/example/RNApp/android/app/build.gradle b/example/RNApp/android/app/build.gradle deleted file mode 100644 index ce9fdd7..0000000 --- a/example/RNApp/android/app/build.gradle +++ /dev/null @@ -1,139 +0,0 @@ -apply plugin: "com.android.application" - -import com.android.build.OutputFile - -/** - * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets - * and bundleReleaseJsAndAssets). - * These basically call `react-native bundle` with the correct arguments during the Android build - * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the - * bundle directly from the development server. Below you can see all the possible configurations - * and their defaults. If you decide to add a configuration block, make sure to add it before the - * `apply from: "../../node_modules/react-native/react.gradle"` line. - * - * project.ext.react = [ - * // the name of the generated asset file containing your JS bundle - * bundleAssetName: "index.android.bundle", - * - * // the entry file for bundle generation - * entryFile: "index.android.js", - * - * // whether to bundle JS and assets in debug mode - * bundleInDebug: false, - * - * // whether to bundle JS and assets in release mode - * bundleInRelease: true, - * - * // whether to bundle JS and assets in another build variant (if configured). - * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants - * // The configuration property can be in the following formats - * // 'bundleIn${productFlavor}${buildType}' - * // 'bundleIn${buildType}' - * // bundleInFreeDebug: true, - * // bundleInPaidRelease: true, - * // bundleInBeta: true, - * - * // the root of your project, i.e. where "package.json" lives - * root: "../../", - * - * // where to put the JS bundle asset in debug mode - * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", - * - * // where to put the JS bundle asset in release mode - * jsBundleDirRelease: "$buildDir/intermediates/assets/release", - * - * // where to put drawable resources / React Native assets, e.g. the ones you use via - * // require('./image.png')), in debug mode - * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", - * - * // where to put drawable resources / React Native assets, e.g. the ones you use via - * // require('./image.png')), in release mode - * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", - * - * // by default the gradle tasks are skipped if none of the JS files or assets change; this means - * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to - * // date; if you have any other folders that you want to ignore for performance reasons (gradle - * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ - * // for example, you might want to remove it from here. - * inputExcludes: ["android/**", "ios/**"], - * - * // override which node gets called and with what additional arguments - * nodeExecutableAndArgs: ["node"] - * - * // supply additional arguments to the packager - * extraPackagerArgs: [] - * ] - */ - -apply from: "../../node_modules/react-native/react.gradle" - -/** - * Set this to true to create two separate APKs instead of one: - * - An APK that only works on ARM devices - * - An APK that only works on x86 devices - * The advantage is the size of the APK is reduced by about 4MB. - * Upload all the APKs to the Play Store and people will download - * the correct one based on the CPU architecture of their device. - */ -def enableSeparateBuildPerCPUArchitecture = false - -/** - * Run Proguard to shrink the Java bytecode in release builds. - */ -def enableProguardInReleaseBuilds = false - -android { - compileSdkVersion 23 - buildToolsVersion "23.0.1" - - defaultConfig { - applicationId "com.rnapp" - minSdkVersion 16 - targetSdkVersion 22 - versionCode 1 - versionName "1.0" - ndk { - abiFilters "armeabi-v7a", "x86" - } - } - splits { - abi { - reset() - enable enableSeparateBuildPerCPUArchitecture - universalApk false // If true, also generate a universal APK - include "armeabi-v7a", "x86" - } - } - buildTypes { - release { - minifyEnabled enableProguardInReleaseBuilds - proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" - } - } - // applicationVariants are e.g. debug, release - applicationVariants.all { variant -> - variant.outputs.each { output -> - // For each separate APK per architecture, set a unique version code as described here: - // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits - def versionCodes = ["armeabi-v7a":1, "x86":2] - def abi = output.getFilter(OutputFile.ABI) - if (abi != null) { // null for the universal-debug, universal-release variants - output.versionCodeOverride = - versionCodes.get(abi) * 1048576 + defaultConfig.versionCode - } - } - } -} - -dependencies { - compile fileTree(dir: "libs", include: ["*.jar"]) - compile "com.android.support:appcompat-v7:23.0.1" - compile "com.facebook.react:react-native:+" // From node_modules -} - -// Run this once to be able to run the application with BUCK -// puts all compile dependencies into folder libs for BUCK to use -task copyDownloadableDepsToLibs(type: Copy) { - from configurations.compile - into 'libs' -} diff --git a/example/RNApp/android/app/proguard-rules.pro b/example/RNApp/android/app/proguard-rules.pro deleted file mode 100644 index 48361a9..0000000 --- a/example/RNApp/android/app/proguard-rules.pro +++ /dev/null @@ -1,66 +0,0 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Disabling obfuscation is useful if you collect stack traces from production crashes -# (unless you are using a system that supports de-obfuscate the stack traces). --dontobfuscate - -# React Native - -# Keep our interfaces so they can be used by other ProGuard rules. -# See http://sourceforge.net/p/proguard/bugs/466/ --keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip --keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters --keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip - -# Do not strip any method/class that is annotated with @DoNotStrip --keep @com.facebook.proguard.annotations.DoNotStrip class * --keep @com.facebook.common.internal.DoNotStrip class * --keepclassmembers class * { - @com.facebook.proguard.annotations.DoNotStrip *; - @com.facebook.common.internal.DoNotStrip *; -} - --keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { - void set*(***); - *** get*(); -} - --keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } --keep class * extends com.facebook.react.bridge.NativeModule { *; } --keepclassmembers,includedescriptorclasses class * { native ; } --keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } --keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } --keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } - --dontwarn com.facebook.react.** - -# okhttp - --keepattributes Signature --keepattributes *Annotation* --keep class okhttp3.** { *; } --keep interface okhttp3.** { *; } --dontwarn okhttp3.** - -# okio - --keep class sun.misc.Unsafe { *; } --dontwarn java.nio.file.* --dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement --dontwarn okio.** diff --git a/example/RNApp/android/app/react.gradle b/example/RNApp/android/app/react.gradle deleted file mode 100644 index 348fb12..0000000 --- a/example/RNApp/android/app/react.gradle +++ /dev/null @@ -1,97 +0,0 @@ -import org.apache.tools.ant.taskdefs.condition.Os - -def config = project.hasProperty("react") ? project.react : []; - -def bundleAssetName = config.bundleAssetName ?: "index.android.bundle" -def entryFile = config.entryFile ?: "index.android.js" - -// because elvis operator -def elvisFile(thing) { - return thing ? file(thing) : null; -} - -def reactRoot = elvisFile(config.root) ?: file("../../") -def inputExcludes = config.inputExcludes ?: ["android/**", "ios/**"] - -void runBefore(String dependentTaskName, Task task) { - Task dependentTask = tasks.findByPath(dependentTaskName); - if (dependentTask != null) { - dependentTask.dependsOn task - } -} - -gradle.projectsEvaluated { - // Grab all build types and product flavors - def buildTypes = android.buildTypes.collect { type -> type.name } - def productFlavors = android.productFlavors.collect { flavor -> flavor.name } - - // When no product flavors defined, use empty - if (!productFlavors) productFlavors.add('') - - productFlavors.each { productFlavorName -> - buildTypes.each { buildTypeName -> - // Create variant and target names - def targetName = "${productFlavorName.capitalize()}${buildTypeName.capitalize()}" - def targetPath = productFlavorName ? - "${productFlavorName}/${buildTypeName}" : - "${buildTypeName}" - - // React js bundle directories - def jsBundleDirConfigName = "jsBundleDir${targetName}" - def jsBundleDir = elvisFile(config."$jsBundleDirConfigName") ?: - file("$buildDir/intermediates/assets/${targetPath}") - - def resourcesDirConfigName = "resourcesDir${targetName}" - def resourcesDir = elvisFile(config."${resourcesDirConfigName}") ?: - file("$buildDir/intermediates/res/merged/${targetPath}") - def jsBundleFile = file("$jsBundleDir/$bundleAssetName") - - // Bundle task name for variant - def bundleJsAndAssetsTaskName = "bundle${targetName}JsAndAssets" - - def currentBundleTask = tasks.create( - name: bundleJsAndAssetsTaskName, - type: Exec) { - group = "react" - description = "bundle JS and assets for ${targetName}." - - // Create dirs if they are not there (e.g. the "clean" task just ran) - doFirst { - jsBundleDir.mkdirs() - resourcesDir.mkdirs() - } - - // Set up inputs and outputs so gradle can cache the result - inputs.files fileTree(dir: reactRoot, excludes: inputExcludes) - outputs.dir jsBundleDir - outputs.dir resourcesDir - - // Set up the call to the react-native cli - workingDir reactRoot - - // Set up dev mode - def devEnabled = !targetName.toLowerCase().contains("release") - if (Os.isFamily(Os.FAMILY_WINDOWS)) { - commandLine "cmd", "/c", "react-native", "bundle", "--platform", "android", "--dev", "${devEnabled}", - "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir - } else { - commandLine "react-native", "bundle", "--platform", "android", "--dev", "${devEnabled}", - "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir - } - - enabled config."bundleIn${targetName}" || - config."bundleIn${buildTypeName.capitalize()}" ?: - targetName.toLowerCase().contains("release") - } - - // Hook bundle${productFlavor}${buildType}JsAndAssets into the android build process - currentBundleTask.dependsOn("merge${targetName}Resources") - currentBundleTask.dependsOn("merge${targetName}Assets") - - runBefore("processArmeabi-v7a${targetName}Resources", currentBundleTask) - runBefore("processX86${targetName}Resources", currentBundleTask) - runBefore("processUniversal${targetName}Resources", currentBundleTask) - runBefore("process${targetName}Resources", currentBundleTask) - } - } -} diff --git a/example/RNApp/android/app/src/main/AndroidManifest.xml b/example/RNApp/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index d1a89fe..0000000 --- a/example/RNApp/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/example/RNApp/android/app/src/main/java/com/rnapp/MainActivity.java b/example/RNApp/android/app/src/main/java/com/rnapp/MainActivity.java deleted file mode 100644 index 2d8925a..0000000 --- a/example/RNApp/android/app/src/main/java/com/rnapp/MainActivity.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.rnapp; - -import com.facebook.react.ReactActivity; - -public class MainActivity extends ReactActivity { - - /** - * Returns the name of the main component registered from JavaScript. - * This is used to schedule rendering of the component. - */ - @Override - protected String getMainComponentName() { - return "RNApp"; - } -} diff --git a/example/RNApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/example/RNApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index cde69bc..0000000 Binary files a/example/RNApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/example/RNApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/example/RNApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index c133a0c..0000000 Binary files a/example/RNApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/example/RNApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/example/RNApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index bfa42f0..0000000 Binary files a/example/RNApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/example/RNApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/example/RNApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index 324e72c..0000000 Binary files a/example/RNApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/example/RNApp/android/app/src/main/res/values/strings.xml b/example/RNApp/android/app/src/main/res/values/strings.xml deleted file mode 100644 index 0389929..0000000 --- a/example/RNApp/android/app/src/main/res/values/strings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - RNApp - diff --git a/example/RNApp/android/app/src/main/res/values/styles.xml b/example/RNApp/android/app/src/main/res/values/styles.xml deleted file mode 100644 index 319eb0c..0000000 --- a/example/RNApp/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/example/RNApp/android/build.gradle b/example/RNApp/android/build.gradle deleted file mode 100644 index fcba4c5..0000000 --- a/example/RNApp/android/build.gradle +++ /dev/null @@ -1,24 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. - -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.android.tools.build:gradle:1.3.1' - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } -} - -allprojects { - repositories { - mavenLocal() - jcenter() - maven { - // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm - url "$rootDir/../node_modules/react-native/android" - } - } -} diff --git a/example/RNApp/android/gradle.properties b/example/RNApp/android/gradle.properties deleted file mode 100644 index 1fd964e..0000000 --- a/example/RNApp/android/gradle.properties +++ /dev/null @@ -1,20 +0,0 @@ -# Project-wide Gradle settings. - -# IDE (e.g. Android Studio) users: -# Gradle settings configured through the IDE *will override* -# any settings specified in this file. - -# For more details on how to configure your build environment visit -# http://www.gradle.org/docs/current/userguide/build_environment.html - -# Specifies the JVM arguments used for the daemon process. -# The setting is particularly useful for tweaking memory settings. -# Default value: -Xmx10248m -XX:MaxPermSize=256m -# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 - -# When configured, Gradle will run in incubating parallel mode. -# This option should only be used with decoupled projects. More details, visit -# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true - -android.useDeprecatedNdk=true diff --git a/example/RNApp/android/gradle/wrapper/gradle-wrapper.jar b/example/RNApp/android/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index b5166da..0000000 Binary files a/example/RNApp/android/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/example/RNApp/android/gradle/wrapper/gradle-wrapper.properties b/example/RNApp/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index b9fbfab..0000000 --- a/example/RNApp/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,5 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip diff --git a/example/RNApp/android/gradlew b/example/RNApp/android/gradlew deleted file mode 100755 index 91a7e26..0000000 --- a/example/RNApp/android/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/example/RNApp/android/gradlew.bat b/example/RNApp/android/gradlew.bat deleted file mode 100644 index aec9973..0000000 --- a/example/RNApp/android/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/example/RNApp/android/settings.gradle b/example/RNApp/android/settings.gradle deleted file mode 100644 index 60edbb4..0000000 --- a/example/RNApp/android/settings.gradle +++ /dev/null @@ -1,3 +0,0 @@ -rootProject.name = 'RNApp' - -include ':app' diff --git a/example/RNApp/app/components/button.js b/example/RNApp/app/components/button.js deleted file mode 100644 index 72434db..0000000 --- a/example/RNApp/app/components/button.js +++ /dev/null @@ -1,39 +0,0 @@ -import React, { Component } from 'react'; -import { - StyleSheet, - Text, - View, - TouchableOpacity -} from 'react-native'; - -export default class Button extends Component { - render() { - const { text, onPress } = this.props; - return ( - - - {text} - - - ); - } -} - -Button.defaultProps = { - text: "Button Text", - onPress: () => console.log('Button Pressed') -}; - -const styles = StyleSheet.create({ - button: { - borderWidth: 1, - borderColor: '#ccc', - borderRadius: 5, - }, - buttonText: { - fontWeight: '500', - textAlign: 'center', - padding: 5, - borderRadius: 5, - } -}); diff --git a/example/RNApp/app/connect.js b/example/RNApp/app/connect.js deleted file mode 100644 index 6c6f123..0000000 --- a/example/RNApp/app/connect.js +++ /dev/null @@ -1,6 +0,0 @@ -import Meteor from 'react-native-meteor'; - -export default function() { - const url = 'ws://localhost:3000/websocket'; - Meteor.connect(url); -} diff --git a/example/RNApp/app/containers/accounts.js b/example/RNApp/app/containers/accounts.js deleted file mode 100644 index 5212897..0000000 --- a/example/RNApp/app/containers/accounts.js +++ /dev/null @@ -1,11 +0,0 @@ -import React, { Component } from 'react'; -import Meteor, { createContainer } from 'react-native-meteor'; -import AccountsComponent from '../routes/accounts'; - -export default AccountContainer = createContainer((ownProps) => { - return { - loggingIn: Meteor.loggingIn(), - user: Meteor.user(), - userId: Meteor.userId(), - } -}, AccountsComponent); diff --git a/example/RNApp/app/containers/connection.js b/example/RNApp/app/containers/connection.js deleted file mode 100644 index fcb6cdb..0000000 --- a/example/RNApp/app/containers/connection.js +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import Meteor, {createContainer} from 'react-native-meteor'; -import ConnectionComponent from '../routes/connection'; - -export default ConnectionContainer = createContainer(ownProps => { - return { - status: Meteor.status() - } -}, ConnectionComponent); \ No newline at end of file diff --git a/example/RNApp/app/containers/editItem.js b/example/RNApp/app/containers/editItem.js deleted file mode 100644 index b02a730..0000000 --- a/example/RNApp/app/containers/editItem.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import Meteor, {createContainer} from 'react-native-meteor'; -import EditItem from '../routes/editItem'; - -export default EditItemContainer = createContainer((props) => { - Meteor.subscribe('items'); - return { - item: Meteor.collection('items').findOne() - } -}, EditItem); diff --git a/example/RNApp/app/containers/meteorComplexListView.js b/example/RNApp/app/containers/meteorComplexListView.js deleted file mode 100644 index 3974707..0000000 --- a/example/RNApp/app/containers/meteorComplexListView.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import Meteor, {createContainer} from 'react-native-meteor'; -import MetorComplexListViewComponent from '../routes/meteorComplexListView'; - -export default ComplexListViewContainer = createContainer((ownProps) => { - const itemsHandle = Meteor.subscribe('items'); - return { - itemsReady: itemsHandle.ready() - }; -}, MetorComplexListViewComponent); diff --git a/example/RNApp/app/containers/meteorListView.js b/example/RNApp/app/containers/meteorListView.js deleted file mode 100644 index 56c7c64..0000000 --- a/example/RNApp/app/containers/meteorListView.js +++ /dev/null @@ -1,10 +0,0 @@ -import Meteor, {createContainer} from 'react-native-meteor'; -import React from 'react'; -import MeteorListViewComponent from '../routes/meteorListView'; - -export default MeteorListViewContainer = createContainer(ownProps => { - const itemsHandle = Meteor.subscribe('items'); - return { - itemsReady: itemsHandle.ready() - }; -}, MeteorListViewComponent); diff --git a/example/RNApp/app/index.js b/example/RNApp/app/index.js deleted file mode 100644 index 3cfcd17..0000000 --- a/example/RNApp/app/index.js +++ /dev/null @@ -1,44 +0,0 @@ -import React, { Component } from 'react'; -import { StyleSheet } from 'react-native'; -import {Scene, Router} from 'react-native-router-flux'; - -import connect from './connect'; - -import RouteList from './routes/routeList'; -import ConnectionContainer from './containers/connection'; -import AccountsContainer from './containers/accounts'; -import MeteorListViewContainer from './containers/meteorListView'; -import MeteorComplexListViewContainer from './containers/meteorComplexListView'; -import EditItemContainer from './containers/editItem'; - -export default class RNApp extends Component { - - componentWillMount() { - connect(); - } - - render() { - return ( - styles.sceneStyle}> - - - - - - - - - - - ) - } -} - -const styles = StyleSheet.create({ - container: { - flex: 1 - }, - sceneStyle: { - paddingTop: 64 - } -}); diff --git a/example/RNApp/app/routes/accounts.js b/example/RNApp/app/routes/accounts.js deleted file mode 100644 index 4e405c1..0000000 --- a/example/RNApp/app/routes/accounts.js +++ /dev/null @@ -1,206 +0,0 @@ -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import { View, Text, StyleSheet, TextInput, Dimensions } from 'react-native'; -import Meteor, { connectMeteor, Accounts } from 'react-native-meteor'; -import Button from '../components/button'; - -const { width } = Dimensions.get('window'); - -class AccountsComponent extends Component { - constructor(props) { - super(props); - - this.state = { - email: '', - password: '', - error: null, - oldPassword: '', - newPassword: '' - } - } - - renderLogout() { - const changePassword = () => { - Accounts.changePassword(this.state.oldPassword, this.state.newPassword, (error) => { - if (error) { - this.setState({ error: error.reason, oldPassword: '', newPassword: '' }); - } else { - this.setState({ error: null, oldPassword: '', newPassword: '' }); - } - }); - } - - return ( - - -