Skip to content

Instantly share code, notes, and snippets.

View rahulpunchh's full-sized avatar
🎯
Focusing

Rahul Purohit rahulpunchh

🎯
Focusing
  • Punchh Tech.Inn.
  • Jaipur
  • 10:52 (UTC +05:30)
View GitHub Profile
@rahulpunchh
rahulpunchh / LocationBar-renderHOO-snippet.js
Created August 13, 2026 12:34
Olo SegmentedControl fix: pin legacy variant after DS default change in punchh-components
/**
* Copyright (c) 2017-Present, Punchh, Inc.
* All rights reserved.
*
* Snippet only — apply inside LocationBar.renderHOO SegmentedControl JSX.
* Repo: punchh/olo-framework-reactnative
*/
<SegmentedControl
onTabPress={this.updateIndex}
values={segmentContent}
@rahulpunchh
rahulpunchh / OloBreadcrumb.js
Created August 13, 2026 12:32
OloBreadcrumb Figma connector-gap fix (order flow stepper) — apply in olo-framework-reactnative
//
// Copyright © 2017-Present, Punchh, Inc.
// All rights reserved.
//
'use strict';
import React from 'react';
import { View, TouchableOpacity } from 'react-native';
import PropTypes from 'prop-types';
import { CommonActions } from '@react-navigation/native';
@rahulpunchh
rahulpunchh / BasePaymentCell.js
Last active August 13, 2026 12:29
OLO Review And Pay: restore Edit icons via SectionHeader trailingIcon (BasePaymentCell + CartList)
//
// Copyright © 2017-Present, Punchh, Inc.
// All rights reserved.
//
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import { View, Animated } from 'react-native';
import { SectionHeader, BaseComponent } from 'react-native-punchh-components';
import android.annotation.TargetApi;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.media.AudioManager;
import android.media.MediaFormat;
import android.media.MediaPlayer;
import android.net.Uri;
@rahulpunchh
rahulpunchh / 0_reuse_code.js
Created July 6, 2016 08:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console