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
export class App extends React.PureComponent { | |
render() { | |
return ( | |
<View style={{width: '100%', height: '100%'}}> | |
<OtherComponent /> | |
<SpecialComponent ref={(ref) => ComponentHelper.setReference(ref)}/> | |
</View> | |
) | |
} | |
} |
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 Constants from 'expo-constants'; | |
import * as Amplitude from 'expo-analytics-amplitude'; | |
import { TrackingOptions, normalizeTrackingOptions } from './AnalyticsUtils'; | |
import { ENV } from '../environment'; | |
let isInitialized = false; | |
const apiKey = ENV.AMPLITUDE; | |
const { installationId, deviceName, deviceId, deviceYearClass, expoVersion, nativeAppVersion, nativeBuildVersion, platform, manifest: { version }} = Constants |
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
// Identify | |
const trackingOpts = { id, usernameOrEmail: email }; | |
Analytics.identify(id, TrackingOpts); | |
// Simple event | |
Analytics.track(Analytics.events.BOOTSTRAP); | |
// Event with paramenters | |
Analytics.track(Analytics.events.USER_CREATED_ACCOUNT, trackingOpts); |
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
echo 'remove cache' | |
rm -rf $TMPDIR/react-* | |
rm -rf $TMPDIR/metro-* | |
watchman watch-del-all | |
npm cache verify | |
# echo 'removing derived data' | |
rm -rf ~/Library/Developer/Xcode/DerivedData | |
echo 'removing pods and node modules' |
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
# https://community.home-assistant.io/t/simple-set-thermostat-at-specific-time/255778 | |
blueprint: | |
name: Set thermostat temperature at specific time | |
description: Sets a Thermostat to a specifc temperature at a certain time everyday | |
domain: automation | |
input: | |
time_to_set: | |
name: Time | |
selector: | |
time: |
OlderNewer