Skip to content

Instantly share code, notes, and snippets.

View Saadnajmi's full-sized avatar

Saad Najmi Saadnajmi

View GitHub Profile
@jamonholmgren
jamonholmgren / react-native-macos-start.md
Last active May 20, 2025 11:29
Getting started with react-native-macos (as of May 2, 2025 -- version 0.78.3)

Getting started with react-native-macos

React Native for macOS is a really powerful implementation of React Native for building Mac apps, but the RN macos documentation (as of today) is straight up wrong and won't work.

Here's how to spin one up!

Prerequisites

This assumes you are on a Mac and have installed all the prerequisites for RN iOS.

const ListAccessibilityExamples: React.FunctionComponent = () => {
const [showImage, setShowImage] = React.useState(true);
const [showPresence, setShowPresence] = React.useState(false);
const [showRing, setShowRing] = React.useState(false);
const redSquareStyle: ViewStyle = { width: 20, height: 20, margin: 10, backgroundColor: 'red' };
const cardStyle: ViewStyle = { width: 40, height: 40, margin: 10, backgroundColor: 'white', borderWidth: 1 };
return (
<View>
@mittsh
mittsh / LMWindow.m
Created September 23, 2013 10:11
How to debug your key view loop: highlights
/*
* Copyright (c) 2013 Micha Mazaheri
* Released under the MIT License: http://opensource.org/licenses/MIT
*/
#define LMWindowDEBUGResponders
#ifdef LMWindowDEBUGResponders
static BOOL _showFirstResponderOverlay = YES;
#endif