Skip to content

Instantly share code, notes, and snippets.

View ekzn's full-sized avatar
📲
mobile first product

ekzn

📲
mobile first product
View GitHub Profile
@ekzn
ekzn / androidx-class-mapping.csv
Created June 26, 2019 11:39 — forked from janicduplessis/androidx-class-mapping.csv
Update react-native libraries under node_modules to androidx
Support Library class Android X class
android.support.v8.renderscript.Allocation android.renderscript.Allocation
android.support.v8.renderscript.Element android.renderscript.Element
android.support.v8.renderscript.RenderScript android.renderscript.RenderScript
android.support.v8.renderscript.ScriptIntrinsicBlur android.renderscript.ScriptIntrinsicBlur
android.support.transition.AnimatorUtils androidx.transition.AnimatorUtils
android.support.transition.ArcMotion androidx.transition.ArcMotion
android.support.transition.AutoTransition androidx.transition.AutoTransition
android.support.transition.ChangeBounds androidx.transition.ChangeBounds
android.support.transition.ChangeClipBounds androidx.transition.ChangeClipBounds
@janicduplessis
janicduplessis / androidx-class-mapping.csv
Last active May 20, 2020 20:10
Update react-native libraries under node_modules to androidx
Support Library class Android X class
android.support.v8.renderscript.Allocation android.renderscript.Allocation
android.support.v8.renderscript.Element android.renderscript.Element
android.support.v8.renderscript.RenderScript android.renderscript.RenderScript
android.support.v8.renderscript.ScriptIntrinsicBlur android.renderscript.ScriptIntrinsicBlur
android.support.transition.AnimatorUtils androidx.transition.AnimatorUtils
android.support.transition.ArcMotion androidx.transition.ArcMotion
android.support.transition.AutoTransition androidx.transition.AutoTransition
android.support.transition.ChangeBounds androidx.transition.ChangeBounds
android.support.transition.ChangeClipBounds androidx.transition.ChangeClipBounds
@ekzn
ekzn / AppText.js
Created November 27, 2018 09:42 — forked from neilsarkar/AppText.js
React Native Text Wrapper for default font
'use strict';
import React, {Component} from 'react';
import {
Text,
} from 'react-native';
export default class AppText extends Component {
constructor(props) {
super(props)
@ekzn
ekzn / bootstrap-multistep-form.markdown
Created May 4, 2018 08:16
Bootstrap MultiStep Form
@MrToph
MrToph / Axis.js
Created June 21, 2017 21:16
Charts in React Native with React-Native-SVG and D3.js
import React, { Component, PropTypes } from 'react'
import { G, Line, Path, Rect, Text } from 'react-native-svg'
import * as d3scale from 'd3-scale'
import { dateToShortString } from '../utils'
export default class Axis extends Component {
static propTypes = {
width: PropTypes.number.isRequired,
ticks: PropTypes.number.isRequired,
x: PropTypes.number,
import React, { PureComponent } from 'react';
import { StyleSheet, View, TouchableWithoutFeedback, Animated, Easing, Platform } from 'react-native';
import { COLOR, Toolbar, Icon } from '../react-native-material-ui';
const styles = StyleSheet.create({
pageContainer: {
flex: 1,
},
contentContainer: {
@neilsarkar
neilsarkar / AppText.js
Created January 10, 2017 01:48
React Native Text Wrapper for default font
'use strict';
import React, {Component} from 'react';
import {
Text,
} from 'react-native';
export default class AppText extends Component {
constructor(props) {
super(props)
@jarretmoses
jarretmoses / React Native Clear Cache
Last active June 3, 2024 05:22
Clearing the Cache of your React Native Project
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.63 - watchman watch-del-all && rm -rf node_modules && npm install && rm -rf /tmp/metro-* && npm run start --reset-cache
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
@krambertech
krambertech / Component.jsx
Created July 2, 2016 10:44
ReactJS: Input fire onChange when user stopped typing (or pressed Enter key)
import React, { Component } from 'react';
import TextField from 'components/base/TextField';
const WAIT_INTERVAL = 1000;
const ENTER_KEY = 13;
export default class TextSearch extends Component {
constructor(props) {
super();