- Initialize Git repository
git init
- Create
.gitignore
file and add the following:node_modules/ *.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Dimensions, Platform } from 'react-native'; | |
export const isIphoneX = () => { | |
const { height, width } = Dimensions.get('window'); | |
return Platform.OS === 'ios' && (height === 812 || width === 812) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.app; | |
import com.facebook.react.modules.network.OkHttpClientFactory; | |
import com.facebook.react.modules.network.OkHttpClientProvider; | |
import com.facebook.react.modules.network.ReactCookieJarContainer; | |
import java.util.concurrent.TimeUnit; | |
import okhttp3.CertificatePinner; | |
import okhttp3.OkHttpClient; |