spencercarli / react-native-meteor-boilerplate

MIT License
629 stars 139 forks source link

app crashes immediately #88

Open ketankulkarni opened 5 years ago

ketankulkarni commented 5 years ago

I have developed my project on this boilerplate. I have successfully created apk, it gets installed also. But when I open it crashes without error.

app crash

react native package.json

{
  "name": "RNApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node_modules/react-native/packager/packager.sh",
    "lint": "eslint app/",
    "test": "jest"
  },
  "jest": {
    "preset": "react-native",
    "snapshotSerializers": [
      "enzyme-to-json/serializer"
    ],
    "setupFiles": [
      "<rootDir>/jest/setup.js"
    ]
  },
  "dependencies": {
    "expo": "^25.0.0",
    "gravatar-api": "^1.4.0",
    "react": "^16.0.0-alpha.12",
    "react-native": "^0.47.1",
    "react-native-camera": "^1.0.2",
    "react-native-google-analytics-bridge": "^5.6.3",
    "react-native-keyboard-spacer": "^0.3.0",
    "react-native-meteor": "^1.1.0",
    "react-navigation": "^1.0.0-beta.12"
  },
  "devDependencies": {
    "babel-eslint": "^7.0.0",
    "babel-jest": "^22.4.3",
    "babel-preset-env": "^1.6.1",
    "babel-preset-react": "^6.24.1",
    "enzyme": "^3.3.0",
    "enzyme-adapter-react-16": "^1.1.1",
    "enzyme-to-json": "^3.3.3",
    "eslint": "^3.3.1",
    "eslint-config-airbnb": "^12.0.0",
    "eslint-plugin-import": "^1.16.0",
    "eslint-plugin-jsx-a11y": "^2.1.0",
    "eslint-plugin-react": "^6.1.1",
    "jest": "^22.4.3",
    "jsdom": "11.7.0",
    "jsdom-global": "3.0.2",
    "react-dom": "^16.3.1",
    "react-test-renderer": "^16.3.1"
  }
}

react native info - react-native-cli: 2.0.1 react-native: 0.47.1

OS - ubuntu 17.10

meteor packages

# 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.1.0             # Packages every Meteor app needs to have
mobile-experience@1.0.4       # Packages for a great mobile UX
mongo@1.1.19                   # The database Meteor supports right now
blaze-html-templates@1.0.4    # Compile .html files into Meteor Blaze views
reactive-var@1.0.11            # Reactive variable for tracker
jquery@1.11.10                  # Helpful client-side library
tracker@1.1.3                 # Meteor's client-side reactive programming library

standard-minifier-css@1.3.4   # CSS minifier run for production mode
standard-minifier-js@2.1.1    # JS minifier run for production mode
es5-shim@4.6.15                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.8.1              # Enable ECMAScript2015+ syntax in app code
http
accounts-password@1.4.0
shell-server@0.2.4
dynamic-import
aldeed:simple-schema
aldeed:collection2@3.0.0
random
momentjs:moment
spencercarli commented 5 years ago

Does this happen in development? Perhaps you're trying to access data that isn't there yet? Try looking at what logcat (an android debugging tool) outputs.

ketankulkarni commented 5 years ago

yes, it happens in development.

spencercarli commented 5 years ago

Have you tried updating the packages (use react-native-git-upgrade for React Native and React)? I don't really use, thus don't really support, this boilerplate anymore.