Skip to content

Instantly share code, notes, and snippets.

View Ashoat's full-sized avatar
🔐

Ashoat Tevosyan Ashoat

🔐
View GitHub Profile
ashoat@Ashoats-MacBook-Pro [~/Dropbox/src/react-navigation]# git diff
diff --git a/docs/api/navigators/StackNavigator.md b/docs/api/navigators/StackNavigator.md
index 3816577..f8895eb 100644
--- a/docs/api/navigators/StackNavigator.md
+++ b/docs/api/navigators/StackNavigator.md
@@ -87,6 +87,7 @@ Visual options:
- `cardStyle` - Use this prop to override or extend the default style for an individual card in stack.
- `onTransitionStart` - Function to be invoked when the card transition animation is about to start.
- `onTransitionEnd` - Function to be invoked once the card transition animation completes.
+- `gesturesEnabled` - Whether routes on the stack can be popped through gestures. Defaults to true on iOS, false on Android
@Ashoat
Ashoat / diff
Created February 19, 2017 00:44
ashoat@Ashoats-MacBook-Pro [~/Dropbox/src/react-navigation]# git diff
diff --git a/docs/api/navigators/StackNavigator.md b/docs/api/navigators/StackNavigator.md
index 3816577..f8895eb 100644
--- a/docs/api/navigators/StackNavigator.md
+++ b/docs/api/navigators/StackNavigator.md
@@ -87,6 +87,7 @@ Visual options:
- `cardStyle` - Use this prop to override or extend the default style for an individual card in stack.
- `onTransitionStart` - Function to be invoked when the card transition animation is about to start.
- `onTransitionEnd` - Function to be invoked once the card transition animation completes.
+- `gesturesEnabled` - Whether routes on the stack can be popped through gestures. Defaults to true on iOS, false on Android
@Ashoat
Ashoat / .diff
Created February 19, 2017 00:44
ashoat@Ashoats-MacBook-Pro [~/Dropbox/src/react-navigation]# git diff
diff --git a/docs/api/navigators/StackNavigator.md b/docs/api/navigators/StackNavigator.md
index 3816577..f8895eb 100644
--- a/docs/api/navigators/StackNavigator.md
+++ b/docs/api/navigators/StackNavigator.md
@@ -87,6 +87,7 @@ Visual options:
- `cardStyle` - Use this prop to override or extend the default style for an individual card in stack.
- `onTransitionStart` - Function to be invoked when the card transition animation is about to start.
- `onTransitionEnd` - Function to be invoked once the card transition animation completes.
+- `gesturesEnabled` - Whether routes on the stack can be popped through gestures. Defaults to true on iOS, false on Android
node_modules/react-native-tab-view/src/TabBar.js:194
194: const passedTabStyle = StyleSheet.flatten(this.props.tabStyle);
^^^^^^^^^^^^^^^^^^^ property `tabStyle`. Property cannot be accessed on any member of intersection type
194: const passedTabStyle = StyleSheet.flatten(this.props.tabStyle);
^^^^^^^^^^ intersection
Member 1:
39: type Props<T> = SceneRendererProps<T> & {
^^^^^^^^^^^^^^^^^^^^^ type application of type `SceneRendererProps`
Error:
194: const passedTabStyle = StyleSheet.flatten(this.props.tabStyle);
ashoat@Ashoats-MacBook-Pro [~/Dropbox/src/react-native-tab-view]# dig NS gravitasvt.com
; <<>> DiG 9.8.3-P1 <<>> NS gravitasvt.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64451
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 3
;; QUESTION SECTION:
;gravitasvt.com. IN NS
root@johnny [~]# uptime
13:42:54 up 5 days, 21:06, 2 users, load average: 40.91, 27.77, 28.30
root@johnny [~]# dig NS gravitasvt.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.47.rc1.el6_8.4 <<>> NS gravitasvt.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31558
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
@Ashoat
Ashoat / text-height-measurer.js
Created May 11, 2017 04:24
React Native component for measuring text height
// @flow
import type {
StyleObj,
} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import React from 'react';
import PropTypes from 'prop-types';
import { Text, View, StyleSheet } from 'react-native';
import invariant from 'invariant';
Libraries/Components/ActivityIndicator/ActivityIndicator.js:const ActivityIndicator = React.createClass({
Libraries/Components/DatePicker/DatePickerIOS.ios.js:const DatePickerIOS = React.createClass({
Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js:var DrawerLayoutAndroid = React.createClass({
Libraries/Components/Keyboard/KeyboardAvoidingView.js:const KeyboardAvoidingView = React.createClass({
Libraries/Components/LazyRenderer.js:var LazyRenderer = React.createClass({
Libraries/Components/Navigation/NavigatorIOS.ios.js:var NavigatorIOS = React.createClass({
Libraries/Components/Picker/Picker.js: // $FlowFixMe found when converting React.createClass to ES6
Libraries/Components/Picker/Picker.js: // $FlowFixMe found when converting React.createClass to ES6
Libraries/Components/Picker/PickerIOS.ios.js:var PickerIOS = React.createClass({
Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js:var ProgressBarAndroid = React.createClass({
[ 12:42AM ] [ ledscape@ledscape:~/LEDscape(master✗) ]
$ sudo pkill -9 opc-server; sudo ./run-ledscape
tokens: 383: {
"outputMode": "ws281x",
"outputMapping": "rgb-123-v2",
"demoMode": "fade",
"ledsPerStrip": 214,
"usedStripCount": 43,
"colorChannelOrder": "BRG",
"opcTcpPort": 7890,
@Ashoat
Ashoat / ledscape_installation.sh
Created August 9, 2017 22:56
ledscape installation
ashoat@Ashoats-MacBook-Pro [~/Dropbox/src/LEDscape]# sudo dd if=~/Downloads/ledscape-arch-linux.img of=/dev/rdisk2 bs=4m
Password:
1024+0 records in
1024+0 records out
4294967296 bytes transferred in 275.179716 secs (15607863 bytes/sec)
ashoat@Ashoats-MacBook-Pro [~/Dropbox/src/LEDscape]# ssh [email protected]
[email protected]'s password:
[ 10:41PM ] [ ledscape@ledscape:~ ]
$ sudo /home/ledscape/LEDscape/install-to-emmc.sh ledscape.local 192.168.1.8
About to setup this beaglebone to be ledscape.local (192.168.1.8)