MCPcopy Index your code
hub / github.com/ptmt/react-native-macos

github.com/ptmt/react-native-macos @v0.14.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.14.0 ↗
10,604 symbols 30,932 edges 1,711 files 1,605 documented · 15% 2 cross-repo links
README

React Native macOS (ex react-native-desktop)

Build macOS desktop applications using React Native.

Build Status npm version discord #react-native-platforms

<View>
  <Button onClick={() => alert('clicked!')} />
</View>

Getting Started

Node 4.x+, OS X 10.11+ required.

Previous React Native experience is highly recommended.

$ npm install react-native-macos-cli -g
$ react-native-macos init MyProject
$ cd MyProject
$ react-native-macos run-macos

If you want to add macOS target to the existing iOS/Android/Windows project, make the steps above, merge this new folder into your current React Native project, then put rn-cli.config.js in the root.

Documentation

Since React Native macOS is just a fork, you can follow the same instructions on the React Native Documentation.

Disclaimer

React Native macOS is a fork of React Native for iOS. The project is still a fairly new so proceed at your own risk.

Community Help

Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.

  • Ask a question on StackOverflow and tag it with react-native-macos
  • Chat with us on Reactiflux in `#react-native-platforms (mentioning @ptmt)
  • DM me on twitter (@ptmt)

Examples

UIExplorer

UIExplorer includes a set of component examples that illustrate their functionality. It also allows you to load external JavaScript bundle files through HTTP. Simply copy and paste a URL into the Search Field.

Download UIExplorer

screenshot 2016-03-31 21 06 33

screenshot 2016-03-31 21 00 30

screenshot 2015-10-24 16 40 36

License

See license for React is BSD licensed. Facebook also provide an additional patent grant.

Extension points exported contracts — how you extend this code

NetworkInterceptorCreator (Interface)
Classes implementing this interface return a new Interceptor when the #create method is called. [10 implementers]
ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkInterceptorCreator.java
Agent (Interface)
(no doc) [127 implementers]
Libraries/JSInspector/JSInspector.js
NativeMethodsInterface (Interface)
(no doc) [2 implementers]
Libraries/Renderer/src/renderers/native/NativeMethodsMixinUtils.js
PermissionListener (Interface)
Interface used by activities to delegate permission request results. Classes implementing this class will be notified wh [6 …
ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionListener.java
LifecycleEventListener (Interface)
Listener for receiving activity lifecycle events. When multiple activities share a react instance, only the most recent [29 …
ReactAndroid/src/main/java/com/facebook/react/bridge/LifecycleEventListener.java
ActivityEventListener (Interface)
Listener for receiving activity events. Consider using BaseActivityEventListener if you're not interested in all [7 implementers]
ReactAndroid/src/main/java/com/facebook/react/bridge/ActivityEventListener.java
UIOperation (Interface)
A mutation or animation operation on the view hierarchy. [54 implementers]
ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java

Core symbols most depended-on inside this repo

require
called by 3915
packager/src/Resolver/polyfills/require.js
push
called by 651
Libraries/Utilities/utf8.js
then
called by 434
packager/src/Server/symbolicate/util.js
create
called by 307
ReactAndroid/src/main/java/com/facebook/react/cxxbridge/JavaScriptExecutor.java
invariant
called by 302
website/jsdocs/jsdocs.js
add
called by 268
ReactAndroid/src/main/java/com/facebook/react/flat/ElementsList.java
get
called by 248
ReactAndroid/src/main/java/com/facebook/react/uimanager/Spacing.java
log
called by 245
ReactAndroid/src/main/java/com/facebook/yoga/YogaLogger.java

Shape

Method 6,725
Function 2,241
Class 1,500
Interface 109
Enum 29

Languages

Java57%
TypeScript42%
Python1%

Modules by API surface

Libraries/Animated/src/AnimatedImplementation.js240 symbols
ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java170 symbols
Libraries/Renderer/src/renderers/shared/fiber/__tests__/ReactIncremental-test.js121 symbols
ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java104 symbols
ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java103 symbols
Libraries/react-native/react-native-implementation.js90 symbols
ReactAndroid/src/main/java/com/facebook/react/flat/FlatViewGroup.java70 symbols
ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java67 symbols
ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java64 symbols
ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJSToJavaParametersTestCase.java62 symbols
ReactAndroid/src/main/java/com/facebook/react/cxxbridge/CatalystInstanceImpl.java60 symbols
ReactAndroid/src/main/java/com/facebook/react/processing/ReactPropertyProcessor.java58 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

absolute-path0.0.0 · 1×
art0.10.0 · 1×
async2.4.0 · 1×
babel-core6.24.1 · 1×
babel-eslint7.2.3 · 1×
babel-generator6.24.1 · 1×
babel-loader5.3.2 · 1×
babel-plugin-check-es2015-constants6.5.0 · 1×
babel-plugin-external-helpers6.18.0 · 1×
babel-plugin-react-transform2.0.2 · 1×
babel-plugin-syntax-async-functions6.5.0 · 1×

For agents

$ claude mcp add react-native-macos \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact