chmod 600 keypair_name.pem
Change count base on your main RAM size
import messaging from '@react-native-firebase/messaging'; | |
import PushNotification from 'react-native-push-notification'; | |
import PushNotificationIOS from '@react-native-community/push-notification-ios'; | |
import { navigate } from '@navigator/navigator'; | |
import { registerDeviceToken } from '@state/auth/ActionCreator'; | |
export const notificationHandler = data => { | |
if (data?.notify_type === 'comment') { | |
navigate('PostDetail', { | |
postId: data.target_id, |
import React, {useState} from 'react'; | |
import RNFetchBlob from 'rn-fetch-blob' | |
import { | |
FlatList, | |
SafeAreaView, | |
StyleSheet, | |
Text, | |
TouchableOpacity, | |
View, | |
} from 'react-native'; |
{ | |
"name": "RNVideoProcessingDemo", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"android": "react-native run-android", | |
"ios": "react-native run-ios", | |
"start": "react-native start", | |
"test": "jest", | |
"lint": "eslint ." |
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | |
# yarn lockfile v1 | |
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3": | |
version "7.8.3" | |
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" | |
integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g== | |
dependencies: | |
"@babel/highlight" "^7.8.3" |
chmod 600 keypair_name.pem
Change count base on your main RAM size
The URL pattern for an API is generally structured to make it easy to understand the purpose and hierarchy of the resources being accessed. Here are some common best practices for designing API URL patterns:
/api/v1/users
, /api/v1/orders
, /api/v1/products
./project-root
βββ /src
β βββ /config # Configuration files (DB, env, etc.)
β β βββ db.config.js
β β βββ env.config.js
β β βββ logger.config.js
β βββ /loaders # Application bootstrapping (DB, Express, etc.)