Skip to content

Instantly share code, notes, and snippets.

View FiberJW's full-sized avatar
🔰
改善

Juwan Wheatley FiberJW

🔰
改善
View GitHub Profile
@FiberJW
FiberJW / navigation.js
Created November 10, 2019 07:25
Universal React Router API for Expo Web
import { Platform } from 'react-native';
// hack to get webpack to not bundle native lib
const rrn = 'react-router-native';
export {
Route,
Switch,
Redirect,
useHistory,
@FiberJW
FiberJW / index.ts
Last active September 18, 2019 18:37
Adding `rem` converter DSL to Number primitive for correct styling units on RN platforms.
import { Platform, StyleSheet } from 'react-native';
Object.defineProperty(Number.prototype, 'rem', {
get: function() {
switch (Platform.OS) {
case 'web':
return `${this.valueOf()}rem`;
case 'macos':
case 'windows':
case 'ios':
@FiberJW
FiberJW / Toast.js
Created August 16, 2018 00:29
A cool cross-platform RN Toast Impl
import React from 'react';
import {
View,
ViewPropTypes,
Text,
TouchableOpacity,
Modal as ModalRN,
StyleSheet,
} from 'react-native';
import { PropTypes } from 'prop-types';
@FiberJW
FiberJW / FortniteSettings.md
Last active July 25, 2018 06:50
Fortnite Settings

Custom Settings

Prop Value
Mouse Sensitivity .10
Mouse ADS Sensitivity .75
Mouse Scope Sensitivity .65

Custom Bindings

### Keybase proof
I hereby claim:
* I am FiberJW on github.
* I am wheatleyj404 (https://keybase.io/wheatleyj404) on keybase.
* I have a public key whose fingerprint is ED41 FC60 B2AC 268B 6145 22D6 498A 41F2 51AD F582
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am fiber-god on github.
  • I am wheatleyj404 (https://keybase.io/wheatleyj404) on keybase.
  • I have a public key ASD7WWIfHvOQHrmRIhm6rB797OJ1dTZkES9UH81LjMI9fQo

To claim this, I am signing this object:

@FiberJW
FiberJW / bsconfig.json
Created January 18, 2018 22:55
Example ReasonReact BuckleScript Configuration
{
"name": "<Your App Name Here />",
"reason": {
"react-jsx": 2
},
"bsc-flags": ["-bs-super-errors"],
"bs-dependencies": ["reason-react"],
"sources": [
{
"dir": "./src",
@FiberJW
FiberJW / ElevatedView.js
Last active May 18, 2017 09:51
Cross-Platform Elevation Styles for React Native
// @flow
import React, { Component } from "react";
import { Animated, TouchableWithoutFeedback } from "react-native";
type State = {
height: number,
width: number,
elevation: Animated.Value
};
@FiberJW
FiberJW / App.js
Created May 11, 2017 01:47
React Native HeroFabLayout
/**
* @flow
*/
import React, { Component } from "react";
import { View } from "react-native";
type State = {
heroLayout: { height: number, width: number },
buttonLayout: { height: number, width: number }
@FiberJW
FiberJW / cloudSettings
Last active August 10, 2017 18:46
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-08-10T18:46:53.540Z","extensionVersion":"v2.8.2"}