Skip to content

Instantly share code, notes, and snippets.

View yasserzubair's full-sized avatar
🤘
Get shit done!

Yasser Zubair yasserzubair

🤘
Get shit done!
View GitHub Profile
@yasserzubair
yasserzubair / PriceNumberToString.js
Created June 14, 2019 07:14
Javascript implementation for converting price to Pakistani/Indian rupees format strings
export function numToString(x) {
var r = 0;
var txter = x;
var sizer = txter.length;
var numStr = "";
if (isNaN(txter)) {
return (" Invalid number");
// exit();
}
var n = parseInt(x);
@yasserzubair
yasserzubair / React-Native-WebView-Cookies.js
Created August 15, 2018 08:12 — forked from xxxxlr/React-Native-WebView-Cookies.js
React Native Trick: Get Cookies of WebView without using any native modules such as react-native-cookies. Might be helpful for getting JWT while making OAuth2 👽
// @flow
import React, { Component } from 'react';
import {
WebView,
} from 'react-native';
class LoginScreen extends Component {
state = {
cookies : {},