Skip to content

Instantly share code, notes, and snippets.

View engrwaqasali's full-sized avatar
🎨
Focusing

Waqas Ali engrwaqasali

🎨
Focusing
  • Mardan, Pakistan
  • 11:37 (UTC +05:00)
  • X @ladwaqas
View GitHub Profile
@engrwaqasali
engrwaqasali / SvgRadarChart.tsx
Created May 19, 2022 04:46 — forked from brianfoody/SvgRadarChart.tsx
SVG Radar Chart in React Native
import React, { useMemo } from "react";
import { View } from "react-native";
import { degToRadians } from "src/components/OrbitLogo";
import Svg, { Circle, Line, Polygon } from "react-native-svg";
import times from "lodash.times";
type RadarData = {
value: number;
label: string;
};
@engrwaqasali
engrwaqasali / DraggableScrollView.tsx
Created August 19, 2022 14:09 — forked from nandorojo/DraggableScrollView.tsx
Make a horizontal `ScrollView` draggable with a mouse (`react-native-web`)
import React, { ComponentProps } from 'react'
import { ScrollView } from 'react-native'
import { useDraggableScroll } from './use-draggable-scroll'
export const DraggableScrollView = React.forwardRef<
ScrollView,
ComponentProps<typeof ScrollView>
>(function DraggableScrollView(props, ref) {
const { refs } = useDraggableScroll<ScrollView>({
outerRef: ref,