GithubHelp home page GithubHelp logo

test-dietgram's Introduction

環境

surface

  • windows10
  • npm -v: 6.4.1
  • yarn -v: 1.13.0
  • create-react-native-app --version: 2.0.2
  • expo --version: 2.10.0

macbook air

  • Sierra 10.13.6
  • npm -v: 4.0.5
  • yarn -v: 1.13.0
  • create-react-native-app --version: 2.0.2
  • expo --version: 2.10.1

手順

  1. react-native or create-react-native-app でサンプル作成
    • create-react-native-appの場合、ネイティブコードを動かすためには作ったアプリをejectする必要がある
      • ejectするとError: Cannot find module '../node-haste/DependencyGraph/ModuleResolution'
        • 正直にnode-hasteを入れてejectするとCouldn't read app.json
          • どうやらejectするとapp.json書き換わるようで、転んだ場合はrevertする必要がありそうだ
    • 素直に公式見ると、expo initしてるから試してみる
      • 結果変わらず
    • macで上記を試す
      • 一発成功
    • react-native run-iosで動作確認
      • bundling failed: Error: The resource '/my/workspace/path/index.js' was not found.
  2. package install
    • yarn add rn-apple-healthkit && react-native link rn-apple-healthkit []
    • yarn add react-native-google-fit && react-native link react-native-google-fit
  3. 実機orシミュレータで確認
    • ios
      • 実機
        • xcode側のerror signing for "dTests" requires a development team ...
          • teamを登録していないって言われているけど、登録済み…
      • シミュレータ
        • moduleが動くことは確認。ただ、データが取得できない(シミュレータ上で値を入力しても空が返る)
    • android
      • 実機
        • androidの最新のSDKのバージョンが変わったため、参照するSDKをv27→v28に変更する必要がある
        • react-native run-androidができないと怒られる
          • どうやらreact-nativereact-native-cliがglobalに同居してるとだめみたい
            • 加えて、localにはreact-nativeが必要なよう
            • yarn global remove react-native && yarn add react-native
        • unable to load script from assets index.android.bundle
          • runの前にbundleする必要があるらしいref. ただし、なくても行ける時がある(!?)
            • react-native bundle
            • どうやらnodejsが使うportが塞がってると同様のエラーが出るらしいref
        • 動いたが、データが取れない。(認証に転んでる?)
          • 調査中
      • シミュレータ

test-dietgram's People

Contributors

eyuta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.