ReactNative
RequiresTutorialRoute では hasSeenTutorial を見ている。 しかし、ストアでは sawTutorial デタラメだなぁ・・。。
AsyncStorageはデータを永続化するためのもの。 TypeScriptにて使用してます。 メソッドやstateなどの定義定義 インポートする。 import { AsyncStorage } from "react-native" stateの定義 今回扱う変数をstateで行うのでstateを定義します。 myStateの名前…
これでる。 A problem occurred evaluating project ':app'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. React Native android build failed. SDK location not …
急にrequireがないと言われる。 画像とかがでない。あとヘッダのバックとか yarn add @types/node --dev
Unable to resolve module `./../../react-transform-hmr/lib/index.js` がシミュレータのエラーで出る。 https://stackoverflow.com/questions/52659866/unable-to-resolve-module-react-transform-hmr-lib-index-js 僕は"react": "^16.5.2"``0.57なので関…
No bundle url presentのエラー。 https://github.com/facebook/react-native/issues/12754 ios/Info.plistに。 <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSAllowsArbitraryLoadsInWebContent</key> <true/> <key>NSAllowsLocalNetworking</key> <true/> </dict> </key>
iOSでのスプラッシュの文字 app.jsonの"displayName": "hoge"ではなさそう。 これは何に使う? ホームも反映されなかった。 ios/プロジェクト名/Base.lproj/LaunchScreen.xib こっちはスプラッシュ。 Androidでは別ファイルと思う。
undefined is not a function (near '...babelHelpers.applyDecoratedDescriptor...') <unknown> main.jsbundle:112024:60 loadModuleImplementation main.jsbundle:180:14 <unknown> main.jsbundle:73667:70 loadModuleImplementation main.jsb…
<AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnab</appmeasurement>…
【iOS】React Nativeのアプリにアイコンを設定する方法 | YuiTech 「アプリ名.xcworkspace」の白いアイコンの方で起動 この手順
RNVectorIconsManager.m:95:37: error: too many arguments to block call, expected 1, have 3".Also,"reject(@"font_load_failed", @"Font failed to load", error); reject(@"font_load_failed", @"Font failed to load", error); でエラー。 reject(erro…
ReactNativeでAmobの「undefined is not an object」エラー https://github.com/sbugert/react-native-admob/issues/222 version2使う? yarn add react-native-admob@2.0.0-beta.5 react-native link をも実行する。 qiita.com にあるけど。 UIApplicationD…
yukiyuriweb.com https://github.com/babel/babel/issues/8459 yarn add react react-dom mobx mobx-react yarn add @babel/plugin-proposal-decorators .babelrcに追加 { plugins: [ ..., ['@babel/plugin-proposal-decorators', {legacy: true}], ], }
error: bundling failed: Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/shinriyo/development/react_apps/kazoemon/node_modules/babel-preset-react-native-stage-0/index.js at createDescriptor (/Users/sh…
ReactNativeでiOSのビルドをするとlibfishhook.aが無くてエラーが出る https://github.com/facebook/react-native/issues/19569 これを見て For a solution, I copied the file from my ios/build/Build/Products/Debug-iphonesimulator/libfishhook.a and p…
npm eject cd ios pod init そして、iosフォルダ内へ生成されたPodfileに追加。pod 'Firebase/Messaging'もいるかも?自信はない。 # Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'kazoemon' do #…
https://www.reddit.com/r/reactnative/comments/8qcjot/issue_with_reactnativeadmob_rngadbannerview_does/ redditで Hey again. I was thinking that Expo does have some ad functionality so typed into google "admob expo". って言ってる人いた Admob…
こっちはFacebook公式ReactNativeのIssue https://github.com/facebook/react-native/issues/14590 しかし、 import PropTypes from 'prop-types'; worked for me !! Thanks ってあるけど僕はもうやってる・・。 と思ったが、発生している箇所は、 node_modu…
npm run ejectで吐き出されたiOSのXcodeのプロジェクトを実行。 なんかのタイミングでpackage.jsonが変わった babel-preset-react-nativeを4.0入れようと npm install babel-preset-react-nativeしたせいか?? "babel-preset-react-native": "^4.0.1", これ…
Xcodeはどこだ? node_modules/react-native/local-cli/templates/HelloWorld/ios/HelloWorld.xcodeproj かな? しかも、HelloWorldになってるのはなぜ? 吐き出すのは npm run eject これがいいかも? そしたらアプリ名なんにするか聞かれる。
React native google admob error? - Stack Overflow https://github.com/sbugert/react-native-admob/issues/230 react-native linkをする?
qiita.com この辺参考 これらいれた。 yarn add babel-plugin-transform-decorators-legacy yarn add mobx-react yarn add mobx .babelrcには追加。 { "presets": ["babel-preset-expo"], + "plugins": ["transform-decorators-legacy"], "env": { "developm…