<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Damik Minnegalimov on Medium]]></title>
        <description><![CDATA[Stories by Damik Minnegalimov on Medium]]></description>
        <link>https://medium.com/@damikdk?source=rss-676f5aee44de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MbpuKs3Pw16Kziwf.jpg</url>
            <title>Stories by Damik Minnegalimov on Medium</title>
            <link>https://medium.com/@damikdk?source=rss-676f5aee44de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 20:10:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@damikdk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to open React Native DevMenu on macOS with Apple Silicon]]></title>
            <link>https://damikdk.medium.com/how-to-open-react-native-devmenu-on-macos-with-apple-silicon-c0e958093b9b?source=rss-676f5aee44de------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0e958093b9b</guid>
            <category><![CDATA[apple-m1-chip]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[apple-silicon]]></category>
            <dc:creator><![CDATA[Damik Minnegalimov]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 16:02:46 GMT</pubDate>
            <atom:updated>2021-01-18T19:05:59.929Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*kDGNRXxWys7crLQcC4C0Hg.png" /></figure><h3>How to open React Native DevMenu in iOS app running on macOS with Apple Silicon</h3><p>Once you’ve prevailed on running the native iOS app on macOS with Apple Silicon, you’ll need to open the debug panel. But since this app is not a Simulator, there is no Shake gesture or ‘CMD + D’ handler for it.</p><p>I didn’t find any ready-made solutions in macOS itself, so I just decided to open this menu programmatically. You can do this in both JS:</p><pre>import { NativeModules } from &#39;react-native&#39;;</pre><pre>NativeModules.DevMenu.show();</pre><p>and Objective-C:</p><pre>#import &lt;React/RCTBridge.h&gt;<br>#import &lt;React/RCTDevMenu.h&gt;</pre><pre>// Get a RCTBridge first<br>// For example<br>// RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:jsCodeLocation moduleProvider:nil <br>launchOptions:nil];</pre><pre>// Toggle the menu<br>[bridge.devMenu show];</pre><h3><strong>UPD</strong>: If you want to implement hotkeys like CMD+D:</h3><p>In your app ViewController.m add:</p><pre>- (BOOL)canBecomeFirstResponder<br>{<br>    return YES;<br>}</pre><pre>- (NSArray *)keyCommands<br>{<br>    return @[<br>      [UIKeyCommand keyCommandWithInput:@&quot;d&quot;<br>                          modifierFlags:UIKeyModifierCommand<br>                                 action:<a href="http://twitter.com/selector">@selector</a>(showDebug:)],<br>    ];<br>}</pre><pre>- (void)showDebug:(id)sender<br>{<br>  if (self.bridge) {<br>    [self.bridge.devMenu show];<br>  }<br>}</pre><p>Make sure ‘Touch Alternatives” is disabled in app Menu Bar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0e958093b9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>