- Download & Install git first
git config —global user.email "<your git email>"
git config —global user.name "<your git username OR name>"
module.exports = { | |
bracketSpacing: true, | |
jsxBracketSameLine: true, | |
singleQuote: true, | |
jsxSingleQuote: true, | |
trailingComma: 'all', | |
usesTabs: true, | |
tabWidth: 4, | |
printWidth: 100, | |
}; |
import { Constants } from '../CommonConfig'; | |
import moment from 'moment'; | |
/** | |
* Return random number between inclusive and exclusive | |
* @param {Number} length - exclusive length for randome number | |
* @param {Boolean} countOne - add plus 1 count | |
*/ | |
const getRandomNumber = (exclusiveLength = 1, countOne = false) => { | |
if (countOne) { |
import * as React from 'react'; | |
import { View, Text, Image, StyleSheet, Animated } from 'react-native'; | |
import { Matrics, Colors, Icons, Fonts } from '../CommonConfig'; | |
import { Tools } from '../Helpers'; | |
import Bounceable from './Bounceable'; | |
/** | |
* 'reactionFlag' value is same as in DB | |
* it's useful during sending data with API request | |
*/ |
// --------------- LIBRARIES --------------- | |
import React from 'react'; | |
import { View, StyleSheet, Image } from 'react-native'; | |
import FastImage from 'react-native-fast-image'; | |
// --------------- ASSETS --------------- | |
// --------------- COMPONENT --------------- | |
const MyFastImage = ({ | |
style, | |
placeholder, |
import React from 'react'; | |
import { | |
StyleSheet, | |
Text, | |
View, | |
StatusBar, | |
Dimensions, | |
Image, | |
Animated, | |
findNodeHandle, |
git config —global user.email "<your git email>"
git config —global user.name "<your git username OR name>"
{ | |
"compilerOptions": { | |
/* Basic Options */ | |
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, | |
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, | |
"jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */, | |
"isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */, | |
"lib": ["ES2017", "ES7", "ES6", "DOM"], | |
"declaration": true, | |
"outDir": "lib", /* Add tthis only for library project otherwise comment this line */ |
package com.reactlibrary; | |
import androidx.annotation.NonNull; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.react.bridge.NativeModule; |