Use one of the community packages instead.
Use one of the community packages instead.
AppStateIOS can tell you if the app is in the foreground or background, and notify you when the state changes. AppStateIOS is frequently used to determine the intent and proper behavior when handling push notifications. iOS App States #active - The app is running in the foregroundbackground - The app is running in the background. The user is either in another app or on the home screeninactive - Th
PixelRatio gives you access to the device's pixel density and font scale. Fetching a correctly sized image You should get a higher resolution image if you are on a high pixel density device. A good rule of thumb is to multiply the size of the image you display by the pixel ratio. const image = getImage({ width: PixelRatio.getPixelSizeForLayoutSize(200), height: PixelRatio.getPixelSizeForLayoutSiz
はじめに この資料は、社内向け勉強会用に作られたものです。 ここ半年くらい、ReactとReact Nativeを書くお仕事していたのですが、その際ハマったことや便利だと思ったことを書き記しておこうと思います。 これから学ぶ人の参考になればと思います。 ハマリポイント Life Cycleが多すぎてわからない。componentDidMountってなに・・・ とりあえず、LifeCycleを一気に全部覚えなくても、資料見ながらできればOKだと思う。 こちらに、綺麗にまとまっていたので、見てみよう。 参考: React component ライフサイクル図 http://qiita.com/kawachi/items/092bfc281f88e3a6e456 API取得して画面に反映したいけど、いいやり方がわからない 初心者向けの回答 ( 初回呼ぶだけなら)componentWillMoun
A performant interface for rendering sectioned lists, supporting the most handy features: Fully cross-platform. Configurable viewability callbacks. List header support. List footer support. Item separator support. Section header support. Section separator support. Heterogeneous data and item rendering support. Pull to Refresh. Scroll loading. If you don't need section support and want a simpler in
GitHubは単なるコードリポジトリサービスではありません。よく使っているプロジェクトの動向をチェックしたり、気になる開発者をフォローしたりできます。スターはちょっとした応援になります。 そんなGitHubをiPhone/Androidの中で使えるGit Pointを紹介します。 Git Pointの使い方 起動してGitHubアカウントでログインした画面です。フォローしているユーザ、リポジトリの情報が追えます。 Issueの詳細を確認することもできます。 プロフィール画面です。 Git PointはReact Nativeで作られているのでAndroid、iOSのどちらでも確認できます。ソースコードの閲覧であったり、Issueを作成したりすることもできますのでわざわざWebブラウザで確認したりせずにGitHubを使いこなせるでしょう。 Git PointはReact Native/Jav
If you're looking for a more extensive and future-proof way to handle touch-based input, check out the Pressable API. A wrapper for making views respond properly to touches (Android only). On Android this component uses native state drawable to display touch feedback. At the moment it only supports having a single View instance as a child node, as it's implemented by replacing that View with anoth
If you're looking for a more extensive and future-proof way to handle touch-based input, check out the Pressable API. Do not use unless you have a very good reason. All elements that respond to press should have a visual feedback when touched. TouchableWithoutFeedback supports only one child. If you wish to have several child components, wrap them in a View. Importantly, TouchableWithoutFeedback w
A basic button component that should render nicely on any platform. Supports a minimal level of customization. If this button doesn't look right for your app, you can build your own button using Pressable. For inspiration, look at the source code for the Button component. <Button onPress={onPressLearnMore} title="Learn More" color="#841584" accessibilityLabel="Learn more about this purple button"
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く