-
Available ios virtual devices:
cordova run ios --list --emulator
-
Available iOS Simulators:
cordova emulate ios --list
-
List the available device types:
ios-sim showdevicetypes
-
Build in Legacy Mode:
This file contains hidden or 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 React, { useEffect } from 'react' | |
import { | |
Text | |
} from 'react-native' | |
import useSignalR from './useSignalR' | |
import { getCounterAndToken } from '../services/api' | |
import { hideError, showErrorAndRetryAction } from '../services/common' | |
/** | |
* A hook for getting realtime updates of a counter |
This file contains hidden or 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
interface Demo { | |
val context:Context | |
fun alert(mensaje:String) | |
{ | |
Toast.makeText(context, message, Toast.LENGTH_SHORT).show() | |
} | |
} | |
object SimpleSingleton { | |
val answer = 42; |
- Get root navigation controller
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
UIViewController *rootController = [[delegate window] rootViewController];
UINavigationController *rootNavigationController = (UINavigationController *)rootController;
- Present view controller
UIViewController *ctrl = [UIViewController new];
This file contains hidden or 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
const getArea = (shape, values) => { | |
let area = -1 | |
switch(shape) { | |
case "square": | |
area = Math.pow(values[0], 2); | |
break; | |
case "rectangle": | |
area = values[0] * values[1]; | |
break; | |
case "circle": |
Ok, if you're a newbie like me this is the process (After enable the termux storage permissions):
startarch
tar zcf mirrorlist.tar.gz /etc/pacman.d/
cp /etc/pacman.conf storage/downloads/pacman.conf
cp /etc/pacman.d/mirrorlist storage/downloads/mirrorlist
This file contains hidden or 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
## Free | |
- NuGet For Unity - https://assetstore.unity.com/packages/tools/utilities/nuget-for-unity-104640 | |
- HTTP and REST Client for Unity - https://github.com/proyecto26/RestClient | |
- Native sharing API (Save media, thumbnail for videos) - https://github.com/olokobayusuf/NatShare-API | |
- RTS camera - https://assetstore.unity.com/packages/tools/camera/rts-camera-43321 | |
## Other | |
- Arrow to pointer (card games) - https://assetstore.unity.com/packages/tools/gui/arrow-for-tcg-97386 |
This file contains hidden or 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 { createStackNavigator } from 'react-navigation' | |
import LoginComponent from './components/Login' | |
import HomeComponent from './components/Home' | |
import SplashComponent from './components/Splash' | |
import { renderIfAuthenticated } from './components/Auth' | |
const Main = createStackNavigator( | |
{ | |
LoginComponent: { screen: LoginComponent }, |