Requirements:
-
Device should be a rooted (simulator’s are rooted by default)
-
adbd should be started as root. (Rub command:
adb root)
Now, send local push message using command:
Requirements:
Device should be a rooted (simulator’s are rooted by default)
adbd should be started as root. (Rub command: adb root )
Now, send local push message using command:
Ps: The current setup was done on 01-04-19
Project Dependency Versions at the time 👇
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-scripts": "2.1.3",
"typescript": "^3.2.2"
"tslint": "^5.12.0",
"tslint-config-prettier": "^1.17.0",| import { useEffect, useRef } from 'react'; | |
| export const useEventEmitter = (eventEmitter, eventName: string, fn: () => void) => { | |
| const subscription = useRef(null); | |
| useEffect(() => { | |
| subscription.current = eventEmitter.addListener(eventName, fn); | |
| return () => { | |
| if (subscription.current) { |
| /** | |
| * Metro configuration for React Native | |
| * https://github.com/facebook/react-native | |
| * | |
| * @format | |
| */ | |
| const path = require('path'); | |
| const { FileStore } = require('metro-cache'); |
| // change 'agent' lines as appropriate | |
| pipeline { | |
| agent none | |
| stages { | |
| stage('Run CI?') { | |
| agent any | |
| steps { |
| import { useEffect, useState } from 'react'; | |
| import * as Font from 'expo-font'; | |
| import { SplashScreen } from 'expo'; | |
| /** | |
| * Load and use resources that need to be loaded async by Expo SDK | |
| */ | |
| const useExpoResources = () => { | |
| const [isLoading, setIsLoading] = useState(true); |
If you are reading this tutorial please be aware that this is for advanced users that require a singleton pattern in their RN native module and some documentation detail is left out intentionally.
For the sake of this tutorial we will be using TestManager as our class.
Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.
| // not iterable | |
| { | |
| const myItem = { | |
| a: 1, | |
| b: 2 | |
| } | |
| // const r = [...myItem] // TypeError: myItem is not iterable | |
| } | |
| // now object is iterable |