├── packages ├── react-native-bots │ └── .babelrc ├── react-native │ ├── template │ │ ├── _watchmanconfig │ │ ├── jest.config.js │ │ ├── _bundle │ │ │ └── config │ │ ├── app.json │ │ ├── _eslintrc.js │ │ ├── tsconfig.json │ │ ├── babel.config.js │ │ ├── ios │ │ │ └── HelloWorld │ │ │ │ ├── Images.xcassets │ │ │ │ └── Contents.json │ │ │ │ ├── AppDelegate.h │ │ │ │ └── main.m │ │ ├── android │ │ │ ├── app │ │ │ │ ├── src │ │ │ │ │ └── main │ │ │ │ │ │ └── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── debug.keystore │ │ │ ├── gradle │ │ │ │ └── wrapper │ │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ │ └── gradle-wrapper.properties │ │ │ └── settings.gradle │ │ ├── _prettierrc.js │ │ ├── Gemfile │ │ ├── index.js │ │ ├── metro.config.js │ │ └── __tests__ │ │ │ └── App.test.tsx │ ├── Libraries │ │ ├── .npmignore │ │ ├── Renderer │ │ │ └── REVISION │ │ ├── ReactPrivate │ │ │ ├── README │ │ │ └── ReactNativePrivateInitializeCore.js │ │ ├── Image │ │ │ ├── __tests__ │ │ │ │ └── img │ │ │ │ │ ├── img1.png │ │ │ │ │ └── img2.png │ │ │ ├── RCTImageShadowView.h │ │ │ ├── RCTImageViewManager.h │ │ │ ├── RCTGIFImageDecoder.h │ │ │ ├── RCTImageEditingManager.h │ │ │ ├── AssetRegistry.js │ │ │ ├── RCTLocalAssetImageLoader.h │ │ │ ├── RCTUIImageViewAnimated.h │ │ │ └── RCTImageBlurUtils.h │ │ ├── LogBox │ │ │ └── UI │ │ │ │ └── LogBoxImages │ │ │ │ ├── close.png │ │ │ │ ├── loader.png │ │ │ │ ├── alert-triangle.png │ │ │ │ ├── chevron-left.png │ │ │ │ └── chevron-right.png │ │ ├── NewAppScreen │ │ │ └── components │ │ │ │ └── logo.png │ │ ├── TurboModule │ │ │ ├── RCTExport.d.ts │ │ │ └── TurboModuleRegistry.d.ts │ │ ├── Types │ │ │ └── RootTagTypes.js │ │ ├── Animated │ │ │ ├── AnimatedPlatformConfig.js │ │ │ └── useAnimatedValue.d.ts │ │ ├── Text │ │ │ ├── VirtualText │ │ │ │ ├── RCTVirtualTextView.m │ │ │ │ ├── RCTVirtualTextShadowView.h │ │ │ │ └── RCTVirtualTextViewManager.h │ │ │ ├── TextInput │ │ │ │ ├── RCTInputAccessoryViewContent.h │ │ │ │ ├── RCTInputAccessoryShadowView.h │ │ │ │ ├── RCTInputAccessoryViewManager.h │ │ │ │ ├── RCTBaseTextInputViewManager.h │ │ │ │ ├── Multiline │ │ │ │ │ └── RCTMultilineTextInputView.h │ │ │ │ └── Singleline │ │ │ │ │ └── RCTSinglelineTextInputView.h │ │ │ ├── Text │ │ │ │ └── RCTTextViewManager.h │ │ │ ├── RawText │ │ │ │ └── RCTRawTextViewManager.h │ │ │ └── BaseText │ │ │ │ └── RCTBaseTextViewManager.h │ │ ├── Vibration │ │ │ └── RCTVibration.h │ │ ├── ReactNative │ │ │ ├── HeadlessJsTaskError.js │ │ │ └── RootTag.d.ts │ │ ├── Blob │ │ │ ├── RCTFileReaderModule.h │ │ │ └── __mocks__ │ │ │ │ └── BlobModule.js │ │ ├── NativeAnimation │ │ │ ├── Nodes │ │ │ │ ├── RCTTrackingAnimatedNode.h │ │ │ │ ├── RCTModuloAnimatedNode.h │ │ │ │ ├── RCTAdditionAnimatedNode.h │ │ │ │ ├── RCTDiffClampAnimatedNode.h │ │ │ │ ├── RCTDivisionAnimatedNode.h │ │ │ │ ├── RCTSubtractionAnimatedNode.h │ │ │ │ ├── RCTMultiplicationAnimatedNode.h │ │ │ │ ├── RCTColorAnimatedNode.h │ │ │ │ ├── RCTObjectAnimatedNode.h │ │ │ │ ├── RCTStyleAnimatedNode.h │ │ │ │ └── RCTTransformAnimatedNode.h │ │ │ └── Drivers │ │ │ │ ├── RCTDecayAnimation.h │ │ │ │ ├── RCTFrameAnimation.h │ │ │ │ └── RCTSpringAnimation.h │ │ ├── Components │ │ │ ├── DrawerAndroid │ │ │ │ └── DrawerLayoutAndroid.ios.js │ │ │ └── ProgressBarAndroid │ │ │ │ └── ProgressBarAndroid.ios.js │ │ ├── Utilities │ │ │ ├── DeviceInfo.js │ │ │ └── LoadingView.js │ │ ├── Modal │ │ │ └── ModalInjection.js │ │ ├── StyleSheet │ │ │ └── PointPropType.js │ │ ├── Wrapper │ │ │ └── Example │ │ │ │ ├── RCTWrapperExampleView.h │ │ │ │ └── RCTWrapperExampleViewController.h │ │ ├── SurfaceHostingComponent │ │ │ └── RCTSurfaceHostingComponentController.h │ │ ├── Core │ │ │ └── ReactNativeVersion.js │ │ └── AppDelegate │ │ │ └── RCTLegacyInteropComponents.mm │ ├── types │ │ ├── .npmignore │ │ ├── private │ │ │ └── Utilities.d.ts │ │ ├── __typetests__ │ │ │ └── legacy-properties.tsx │ │ ├── public │ │ │ └── Insets.d.ts │ │ └── tsconfig.json │ ├── gradle.properties │ ├── scripts │ │ ├── .packager.env │ │ ├── .npmignore │ │ ├── native_modules.rb │ │ ├── launchPackager.bat │ │ └── cocoapods │ │ │ ├── __tests__ │ │ │ └── test_utils │ │ │ │ ├── TargetDefinitionMock.rb │ │ │ │ ├── systemUtils.rb │ │ │ │ └── LocalPodspecPatchMock.rb │ │ │ └── codegen_script_phase_extractor.rb │ ├── ReactCommon │ │ ├── yoga │ │ │ ├── .clang-tidy │ │ │ ├── cmake │ │ │ │ └── yoga-config.cmake.in │ │ │ └── yoga │ │ │ │ └── YGValue.cpp │ │ ├── butter │ │ │ └── .clang-tidy │ │ ├── hermes │ │ │ ├── .clang-tidy │ │ │ ├── inspector │ │ │ │ ├── docs │ │ │ │ │ ├── InspectorFSM.pdf │ │ │ │ │ └── GenerateInspectorFSM.sh │ │ │ │ └── tools │ │ │ │ │ └── format │ │ │ └── executor │ │ │ │ ├── JSITracing.h │ │ │ │ └── JSITracing.cpp │ │ ├── jsc │ │ │ ├── .clang-tidy │ │ │ └── JSCRuntime.h │ │ ├── jsi │ │ │ └── .clang-tidy │ │ ├── callinvoker │ │ │ └── .clang-tidy │ │ ├── cxxreact │ │ │ ├── .clang-tidy │ │ │ └── tests │ │ │ │ └── main.cpp │ │ ├── jsiexecutor │ │ │ └── .clang-tidy │ │ ├── jsinspector │ │ │ └── .clang-tidy │ │ ├── react │ │ │ ├── utils │ │ │ │ └── .clang-tidy │ │ │ ├── config │ │ │ │ └── .clang-tidy │ │ │ ├── nativemodule │ │ │ │ ├── .clang-tidy │ │ │ │ └── core │ │ │ │ │ └── ReactCommon │ │ │ │ │ ├── CallbackWrapper.h │ │ │ │ │ └── LongLivedObject.h │ │ │ ├── bridgeless │ │ │ │ ├── README.md │ │ │ │ └── platform │ │ │ │ │ └── ios │ │ │ │ │ └── Core │ │ │ │ │ └── RCTHost+Internal.h │ │ │ └── renderer │ │ │ │ ├── core │ │ │ │ ├── RawValue.cpp │ │ │ │ ├── StateUpdate.cpp │ │ │ │ └── ShadowNodeTraits.cpp │ │ │ │ ├── scheduler │ │ │ │ └── SchedulerToolbox.cpp │ │ │ │ ├── mounting │ │ │ │ └── ShadowTreeRevision.cpp │ │ │ │ ├── element │ │ │ │ ├── Element.cpp │ │ │ │ └── ElementFragment.cpp │ │ │ │ ├── components │ │ │ │ ├── safeareaview │ │ │ │ │ ├── SafeAreaViewState.cpp │ │ │ │ │ └── SafeAreaViewShadowNode.cpp │ │ │ │ ├── image │ │ │ │ │ └── tests │ │ │ │ │ │ └── ImageTest.cpp │ │ │ │ ├── text │ │ │ │ │ ├── tests │ │ │ │ │ │ └── TextTest.cpp │ │ │ │ │ ├── TextShadowNode.cpp │ │ │ │ │ └── RawTextShadowNode.cpp │ │ │ │ ├── scrollview │ │ │ │ │ └── tests │ │ │ │ │ │ └── ScrollViewTest.cpp │ │ │ │ └── legacyviewmanagerinterop │ │ │ │ │ └── LegacyViewManagerInteropState.mm │ │ │ │ └── graphics │ │ │ │ └── tests │ │ │ │ └── GraphicsTest.cpp │ │ ├── jsengineinstance │ │ │ └── .clang-tidy │ │ ├── reactperflogger │ │ │ └── .clang-tidy │ │ └── runtimeexecutor │ │ │ └── .clang-tidy │ ├── ReactAndroid │ │ ├── hermes-engine │ │ │ ├── gradle.properties │ │ │ └── .npmignore │ │ ├── src │ │ │ ├── main │ │ │ │ ├── jni │ │ │ │ │ ├── first-party │ │ │ │ │ │ ├── yogajni │ │ │ │ │ │ │ ├── .clang-tidy │ │ │ │ │ │ │ └── jni │ │ │ │ │ │ │ │ └── YGJNIVanilla.h │ │ │ │ │ │ ├── .clang-tidy │ │ │ │ │ │ ├── fb │ │ │ │ │ │ │ └── include │ │ │ │ │ │ │ │ └── fb │ │ │ │ │ │ │ │ └── visibility.h │ │ │ │ │ │ ├── jni-hack │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ └── jni.h │ │ │ │ │ │ └── fbgloginit │ │ │ │ │ │ │ └── fb │ │ │ │ │ │ │ └── glog_init.h │ │ │ │ │ ├── react │ │ │ │ │ │ ├── mapbuffer │ │ │ │ │ │ │ └── react │ │ │ │ │ │ │ │ └── common │ │ │ │ │ │ │ │ └── mapbuffer │ │ │ │ │ │ │ │ └── .clang-tidy │ │ │ │ │ │ ├── hermes │ │ │ │ │ │ │ └── .clang-tidy │ │ │ │ │ │ ├── jni │ │ │ │ │ │ │ ├── .clang-tidy │ │ │ │ │ │ │ └── OnLoad.h │ │ │ │ │ │ └── reactperflogger │ │ │ │ │ │ │ └── reactperflogger │ │ │ │ │ │ │ ├── .clang-tidy │ │ │ │ │ │ │ └── OnLoad.cpp │ │ │ │ │ ├── prebuilt │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ └── DUMMY │ │ │ │ │ └── third-party │ │ │ │ │ │ └── fmt │ │ │ │ │ │ └── CMakeLists.txt │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── facebook │ │ │ │ │ │ ├── react │ │ │ │ │ │ ├── fabric │ │ │ │ │ │ │ └── .clang-tidy │ │ │ │ │ │ ├── modules │ │ │ │ │ │ │ ├── .clang-tidy │ │ │ │ │ │ │ └── network │ │ │ │ │ │ │ │ └── ProgressListener.java │ │ │ │ │ │ ├── turbomodule │ │ │ │ │ │ │ └── .clang-tidy │ │ │ │ │ │ ├── bridgeless │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ ├── bridge │ │ │ │ │ │ │ ├── JSIModuleProvider.java │ │ │ │ │ │ │ ├── MemoryPressure.java │ │ │ │ │ │ │ └── NativeArrayInterface.java │ │ │ │ │ │ ├── views │ │ │ │ │ │ │ ├── textinput │ │ │ │ │ │ │ │ ├── ContentSizeWatcher.java │ │ │ │ │ │ │ │ └── ScrollWatcher.java │ │ │ │ │ │ │ └── image │ │ │ │ │ │ │ │ └── ImageResizeMethod.java │ │ │ │ │ │ ├── common │ │ │ │ │ │ │ └── ReactConstants.java │ │ │ │ │ │ ├── devsupport │ │ │ │ │ │ │ └── interfaces │ │ │ │ │ │ │ │ ├── BundleLoadCallback.java │ │ │ │ │ │ │ │ └── PackagerStatusCallback.java │ │ │ │ │ │ ├── packagerconnection │ │ │ │ │ │ │ └── Responder.java │ │ │ │ │ │ └── ReactApplication.java │ │ │ │ │ │ ├── systrace │ │ │ │ │ │ └── TraceListener.java │ │ │ │ │ │ ├── yoga │ │ │ │ │ │ └── YogaConfigFactory.java │ │ │ │ │ │ └── perftest │ │ │ │ │ │ └── PerfTestConfig.java │ │ │ │ └── res │ │ │ │ │ ├── devsupport │ │ │ │ │ ├── values │ │ │ │ │ │ └── colors.xml │ │ │ │ │ ├── values-as │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-az │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-be │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-bs │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ca │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-cb │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-de │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-hy │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-is │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-kk │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ku │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ky │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-lo │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-lv │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-mn │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-mr │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ne │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ps │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-qz │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-sn │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-so │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-tg │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-tk │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-uz │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-wo │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-zu │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-da │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-fa │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-sl │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-sv │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-fr │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-tl │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ur │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-bg │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-el │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-fr-rCA │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-sw │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-tr │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-en-rGB │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ka │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-sq │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ja │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ko │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-zh-rCN │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-iw │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-zh-rHK │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-zh-rTW │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-bn │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-cs │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-hu │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-jv │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-nb │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── layout │ │ │ │ │ │ └── redbox_item_title.xml │ │ │ │ │ ├── values-ar │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-et │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-gu │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-ha │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-hi │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-hr │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-in │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── values-km │ │ │ │ │ │ └── strings.xml │ │ │ │ │ └── values-ml │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── systeminfo │ │ │ │ │ └── values │ │ │ │ │ │ └── values.xml │ │ │ │ │ └── views │ │ │ │ │ └── modal │ │ │ │ │ └── anim │ │ │ │ │ ├── catalyst_slide_down.xml │ │ │ │ │ ├── catalyst_slide_up.xml │ │ │ │ │ ├── catalyst_fade_in.xml │ │ │ │ │ └── catalyst_fade_out.xml │ │ │ ├── test │ │ │ │ └── resources │ │ │ │ │ └── robolectric.properties │ │ │ └── androidTest │ │ │ │ └── js │ │ │ │ └── TestBundle.js │ │ ├── external-artifacts │ │ │ └── .npmignore │ │ ├── .npmignore │ │ └── README.md │ ├── flow-typed │ │ └── npm │ │ │ ├── base64-js_v1.x.x.js │ │ │ └── stacktrace-parser_v0.1.x.js │ ├── React │ │ ├── Fabric │ │ │ ├── RCTPrimitives.h │ │ │ └── Mounting │ │ │ │ └── ComponentViews │ │ │ │ └── InputAccessory │ │ │ │ └── RCTInputAccessoryContentView.h │ │ ├── Base │ │ │ ├── RCTCxxConvert.m │ │ │ ├── RCTInitializing.h │ │ │ ├── RCTInvalidating.h │ │ │ ├── RCTNullability.h │ │ │ ├── RCTPerformanceLoggerLabels.h │ │ │ └── Surface │ │ │ │ └── RCTSurfaceRootView.mm │ │ ├── CoreModules │ │ │ ├── RCTAppState.h │ │ │ ├── RCTClipboard.h │ │ │ ├── RCTKeyboardObserver.h │ │ │ ├── RCTDeviceInfo.h │ │ │ ├── RCTPlatform.h │ │ │ ├── RCTActionSheetManager.h │ │ │ ├── RCTSourceCode.h │ │ │ ├── RCTDevLoadingView.h │ │ │ ├── RCTAlertController.h │ │ │ └── RCTLogBox.h │ │ ├── Views │ │ │ ├── RCTSwitchManager.h │ │ │ ├── RCTActivityIndicatorView.h │ │ │ ├── RCTSegmentedControlManager.h │ │ │ ├── RefreshControl │ │ │ │ └── RCTRefreshControlManager.h │ │ │ ├── ScrollView │ │ │ │ ├── RCTScrollContentViewManager.h │ │ │ │ ├── RCTScrollContentView.h │ │ │ │ └── RCTScrollContentShadowView.h │ │ │ ├── RCTConvert+Transform.h │ │ │ ├── RCTBorderCurve.h │ │ │ ├── SafeAreaView │ │ │ │ ├── RCTSafeAreaShadowView.h │ │ │ │ └── RCTSafeAreaViewManager.h │ │ │ ├── RCTBorderStyle.h │ │ │ ├── RCTSwitch.h │ │ │ ├── RCTSwitch.m │ │ │ ├── RCTViewUtils.h │ │ │ └── RCTPointerEvents.h │ │ └── DevSupport │ │ │ └── RCTDevLoadingViewSetEnabled.h │ ├── rn-get-polyfills.js │ ├── jest │ │ └── ReactNativeInternalFeatureFlagsMock.js │ ├── template.config.js │ ├── sdks │ │ └── hermes-engine │ │ │ └── utils │ │ │ └── copy-hermes-xcode.sh │ ├── flow │ │ └── Position.js │ ├── local-cli │ │ └── cli.js │ └── cli.js ├── virtualized-lists │ ├── .npmignore │ └── index.d.ts ├── assets │ └── .npmignore ├── polyfills │ ├── .npmignore │ └── index.js ├── react-native-codegen-typescript-test │ ├── __generated__ │ │ └── .gitignore │ └── tsconfig.json ├── hermes-inspector-msggen │ ├── .gitignore │ └── .babelrc ├── normalize-color │ ├── .npmignore │ └── index.js.flow ├── rn-tester │ ├── .eslintrc │ ├── Gemfile │ ├── RNTester │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Icon-60@2x.png │ │ │ │ ├── Icon-60@3x.png │ │ │ │ ├── Icon-76@2x.png │ │ │ │ ├── Icon-83.5@2x.png │ │ │ │ ├── Icon-Small@2x.png │ │ │ │ ├── Icon-Small@3x.png │ │ │ │ ├── Icon-Small-40@2x.png │ │ │ │ ├── Icon-Small-40@3x.png │ │ │ │ └── iTunesArtwork@1x.png │ │ │ ├── tabnav_list.imageset │ │ │ │ ├── tabnav_list@3x.png │ │ │ │ └── Contents.json │ │ │ ├── NavBarButtonPlus.imageset │ │ │ │ ├── NavBarButtonPlus@3x.png │ │ │ │ └── Contents.json │ │ │ ├── story-background.imageset │ │ │ │ ├── story-background@2x.png │ │ │ │ └── Contents.json │ │ │ ├── tabnav_settings.imageset │ │ │ │ ├── tabnav_settings@3x.png │ │ │ │ └── Contents.json │ │ │ └── tabnav_notification.imageset │ │ │ │ ├── tabnav_notification@3x.png │ │ │ │ └── Contents.json │ │ ├── RNTesterBundle │ │ │ ├── OtherImages.xcassets │ │ │ │ ├── Contents.json │ │ │ │ └── ImageInAssetCatalog.imageset │ │ │ │ │ ├── react-logo.png │ │ │ │ │ └── Contents.json │ │ │ └── ImageInBundle.png │ │ ├── legacy_image@2x.png │ │ ├── NativeExampleViews │ │ │ ├── FlexibleSizeExampleView.h │ │ │ └── UpdatePropertiesExampleView.h │ │ ├── RNTester.entitlements │ │ └── main.m │ ├── js │ │ ├── assets │ │ │ ├── bunny.png │ │ │ ├── call.png │ │ │ ├── empty.png │ │ │ ├── fist.png │ │ │ ├── hawk.png │ │ │ ├── heart.png │ │ │ ├── like.png │ │ │ ├── party.png │ │ │ ├── poke.png │ │ │ ├── trees.jpg │ │ │ ├── dislike.png │ │ │ ├── flowers.png │ │ │ ├── flux@3x.png │ │ │ ├── liking.png │ │ │ ├── slider.png │ │ │ ├── victory.png │ │ │ ├── bandaged.png │ │ │ ├── imageMask.png │ │ │ ├── relay@3x.png │ │ │ ├── slider@2x.png │ │ │ ├── superlike.png │ │ │ ├── search-icon.png │ │ │ ├── slider-left.png │ │ │ ├── slider-right.png │ │ │ ├── bookmark-filled.png │ │ │ ├── documentation.png │ │ │ ├── slider-left@2x.png │ │ │ ├── slider-right@2x.png │ │ │ ├── uie_thumb_big.png │ │ │ ├── bookmark-outline.png │ │ │ ├── header-back-button.png │ │ │ ├── uie_thumb_normal@2x.png │ │ │ ├── bookmark-outline-blue.png │ │ │ ├── bookmark-outline-gray.png │ │ │ ├── uie_comment_normal@2x.png │ │ │ ├── uie_thumb_selected@2x.png │ │ │ ├── bottom-nav-bookmark-fill.png │ │ │ ├── bottom-nav-apis-icon-active.png │ │ │ ├── bottom-nav-bookmark-outline.png │ │ │ ├── uie_comment_highlighted@2x.png │ │ │ ├── bottom-nav-apis-icon-inactive.png │ │ │ ├── tumblr_mfqekpMktw1rn90umo1_500.gif │ │ │ ├── bottom-nav-components-icon-active.png │ │ │ └── bottom-nav-components-icon-inactive.png │ │ └── examples │ │ │ ├── Accessibility │ │ │ ├── check.png │ │ │ ├── mixed.png │ │ │ └── uncheck.png │ │ │ └── Snapshot │ │ │ └── SnapshotViewIOS.android.js │ ├── RNTesterIntegrationTests │ │ ├── red_square.png │ │ ├── blue_square.png │ │ └── ReferenceImages │ │ │ ├── RNTester-js-RNTesterApp.ios │ │ │ ├── testTextExample_1-iOS12@2x.png │ │ │ ├── testTextExample_1-iOS13@2x.png │ │ │ ├── testViewExample_1-iOS12@2x.png │ │ │ ├── testViewExample_1-iOS13@2x.png │ │ │ ├── testLayoutExample_1-iOS12@2x.png │ │ │ ├── testLayoutExample_1-iOS13@2x.png │ │ │ ├── testSliderExample_1-iOS12@2x.png │ │ │ ├── testSwitchExample_1-iOS12@2x.png │ │ │ ├── testSwitchExample_1-iOS13@2x.png │ │ │ ├── testScrollViewExample_1-iOS12@2x.png │ │ │ └── testScrollViewExample_1-iOS13@2x.png │ │ │ ├── IntegrationTests-IntegrationTestsApp │ │ │ ├── testImageSnapshotTest_1@2x.png │ │ │ ├── testImageSnapshotTest_1@3x.png │ │ │ ├── testSimpleSnapshotTest_1@2x.png │ │ │ └── testSimpleSnapshotTest_1@3x.png │ │ │ └── packages-rn-tester-js-RNTesterApp.ios │ │ │ ├── testTextExample_1-iOS16@3x.png │ │ │ ├── testViewExample_1-iOS16@3x.png │ │ │ ├── testLayoutExample_1-iOS16@3x.png │ │ │ └── testSwitchExample_1-iOS16@3x.png │ ├── android │ │ └── app │ │ │ └── src │ │ │ ├── main │ │ │ ├── res │ │ │ │ ├── font │ │ │ │ │ ├── rubik_bold.ttf │ │ │ │ │ ├── rubik_light.ttf │ │ │ │ │ ├── rubik_medium.ttf │ │ │ │ │ ├── rubik_regular.ttf │ │ │ │ │ └── rubik_medium_italic.ttf │ │ │ │ ├── drawable │ │ │ │ │ ├── tv_banner.png │ │ │ │ │ ├── legacy_image.png │ │ │ │ │ ├── ic_menu_black_24dp.png │ │ │ │ │ ├── ic_create_black_48dp.png │ │ │ │ │ └── ic_settings_black_48dp.png │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ └── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── ic_launcher-playstore.png │ │ │ └── assets │ │ │ │ └── fonts │ │ │ │ ├── notoserif.ttf │ │ │ │ └── notoserif_bold_italic.ttf │ │ │ └── debug │ │ │ └── AndroidManifest.xml │ ├── .babelrc │ ├── RNTesterPods.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── NativeModuleExample │ │ └── Screenshot.h │ ├── RCTTest │ │ ├── RCTSnapshotManager.h │ │ └── FBSnapshotTestCase │ │ │ ├── UIImage+Diff.h │ │ │ └── UIImage+Compare.h │ └── RNTesterUnitTests │ │ ├── RNTesterUnitTestsBundle.js │ │ └── RCTPerformanceLoggerTests.m ├── react-native-gradle-plugin │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── src │ │ ├── main │ │ │ └── kotlin │ │ │ │ └── com │ │ │ │ └── facebook │ │ │ │ └── react │ │ │ │ └── model │ │ │ │ ├── ModelPackageJson.kt │ │ │ │ └── ModelCodegenConfigAndroid.kt │ │ └── test │ │ │ └── kotlin │ │ │ └── com │ │ │ └── facebook │ │ │ └── react │ │ │ └── TestReactExtension.kt │ └── settings.gradle.kts ├── react-native-codegen │ ├── .prettierrc │ ├── src │ │ ├── __tests__ │ │ │ └── __snapshots__ │ │ │ │ └── SchemaValidator-test.js.snap │ │ ├── parsers │ │ │ ├── errors.d.ts │ │ │ ├── schema │ │ │ │ └── index.d.ts │ │ │ └── parsers-utils.js │ │ ├── SchemaValidator.d.ts │ │ └── cli │ │ │ └── parser │ │ │ └── parser-cli.js │ ├── buck_tests │ │ └── emptyFile.cpp │ └── .babelrc ├── typescript-config │ └── README.md ├── eslint-plugin-react-native │ └── index.js └── eslint-plugin-specs │ └── index.js ├── .buckjavaargs ├── .bundle └── config ├── IntegrationTests ├── blue_square.png ├── red_square.png └── launchWebSocketServer.sh ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .babelrc ├── .github └── ISSUE_TEMPLATE.md ├── Gemfile ├── .prettierrc ├── .eslintignore ├── .circleci └── README.md ├── tools └── eslint │ └── README.md ├── .editorconfig ├── .buckconfig └── scripts ├── circleci └── exec_swallow_error.sh └── versiontemplates └── ReactNativeVersion.js.template /packages/react-native-bots/.babelrc: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/react-native/template/_watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/virtualized-lists/.npmignore: -------------------------------------------------------------------------------- 1 | __tests__ 2 | -------------------------------------------------------------------------------- /.buckjavaargs: -------------------------------------------------------------------------------- 1 | -Xmx512m -XX:+HeapDumpOnOutOfMemoryError 2 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/.npmignore: -------------------------------------------------------------------------------- 1 | __tests__ 2 | -------------------------------------------------------------------------------- /packages/react-native/types/.npmignore: -------------------------------------------------------------------------------- 1 | __typetests__ 2 | -------------------------------------------------------------------------------- /packages/react-native/gradle.properties: -------------------------------------------------------------------------------- 1 | android.useAndroidX=true -------------------------------------------------------------------------------- /packages/assets/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | BUCK 4 | -------------------------------------------------------------------------------- /packages/polyfills/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | BUCK 4 | -------------------------------------------------------------------------------- /packages/react-native/scripts/.packager.env: -------------------------------------------------------------------------------- 1 | export RCT_METRO_PORT=8081 2 | -------------------------------------------------------------------------------- /.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /packages/react-native-codegen-typescript-test/__generated__/.gitignore: -------------------------------------------------------------------------------- 1 | *.ts 2 | -------------------------------------------------------------------------------- /packages/hermes-inspector-msggen/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | bin/ 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /packages/normalize-color/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | BUCK 4 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Renderer/REVISION: -------------------------------------------------------------------------------- 1 | a389046a529c6d22ba5895dd7f5d4b0b8d17c345 2 | -------------------------------------------------------------------------------- /packages/react-native/template/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | }; 4 | -------------------------------------------------------------------------------- /packages/rn-tester/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "react-native/no-inline-styles": 0 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/yoga/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | ... 6 | -------------------------------------------------------------------------------- /packages/react-native/template/_bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /packages/react-native/template/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "HelloWorld", 3 | "displayName": "HelloWorld" 4 | } 5 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/hermes-engine/gradle.properties: -------------------------------------------------------------------------------- 1 | android.disableAutomaticComponentCreation=true 2 | -------------------------------------------------------------------------------- /packages/react-native/template/_eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native', 4 | }; 5 | -------------------------------------------------------------------------------- /packages/react-native/template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@react-native/typescript-config/tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/react-native/scripts/.npmignore: -------------------------------------------------------------------------------- 1 | # Make sure we never publish __test__ folders (Gradle output) 2 | **/__*tests__/ 3 | -------------------------------------------------------------------------------- /packages/rn-tester/Gemfile: -------------------------------------------------------------------------------- 1 | # Gemfile 2 | source 'https://rubygems.org' 3 | 4 | gem 'cocoapods', '~> 1.12' 5 | gem 'rexml' 6 | -------------------------------------------------------------------------------- /IntegrationTests/blue_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/IntegrationTests/blue_square.png -------------------------------------------------------------------------------- /IntegrationTests/red_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/IntegrationTests/red_square.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/react-native/template/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/hermes-engine/.npmignore: -------------------------------------------------------------------------------- 1 | # Make sure we never publish the build folders to npm. 2 | build/ 3 | .cxx/ 4 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | ... 6 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/butter/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | InheritParentConfig: true 3 | Checks: '> 4 | clang-diagnostic-*, 5 | ' 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/hermes/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/jsc/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/jsi/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bunny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bunny.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/call.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/empty.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/fist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/fist.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/hawk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/hawk.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/heart.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/like.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/party.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/party.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/poke.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/poke.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/trees.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/trees.jpg -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/react/mapbuffer/react/common/mapbuffer/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | InheritParentConfig: true 3 | ... 4 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/callinvoker/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/cxxreact/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/jsiexecutor/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/jsinspector/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/utils/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/dislike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/dislike.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/flowers.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/flux@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/flux@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/liking.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/liking.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/slider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/slider.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/victory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/victory.png -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/test/resources/robolectric.properties: -------------------------------------------------------------------------------- 1 | # Set this to minimum supported API level for React Native. 2 | sdk=33 3 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/jsengineinstance/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/config/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/reactperflogger/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/runtimeexecutor/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bandaged.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bandaged.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/imageMask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/imageMask.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/relay@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/relay@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/slider@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/slider@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/superlike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/superlike.png -------------------------------------------------------------------------------- /packages/react-native/Libraries/ReactPrivate/README: -------------------------------------------------------------------------------- 1 | JS modules in this folder are forwarding modules to allow React to require React Native internals. 2 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/nativemodule/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/search-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/search-icon.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/slider-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/slider-left.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/slider-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/slider-right.png -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/external-artifacts/.npmignore: -------------------------------------------------------------------------------- 1 | # Make sure we never publish the build and artifacts folders to npm. 2 | build/ 3 | artifacts/ 4 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/first-party/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/react/hermes/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | InheritParentConfig: true 3 | Checks: '> 4 | clang-diagnostic-*, 5 | ' 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/react/jni/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/template/ios/HelloWorld/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/RNTesterBundle/OtherImages.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/legacy_image@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/legacy_image@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bookmark-filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bookmark-filled.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/documentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/documentation.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/slider-left@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/slider-left@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/slider-right@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/slider-right@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/uie_thumb_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/uie_thumb_big.png -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/prebuilt/lib/DUMMY: -------------------------------------------------------------------------------- 1 | # just a dummy temporarily to make BUCK happy about folder not present before Gradle built it 2 | -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bookmark-outline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bookmark-outline.png -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Hello App Display Name 3 | 4 | -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/header-back-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/header-back-button.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/uie_thumb_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/uie_thumb_normal@2x.png -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bookmark-outline-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bookmark-outline-blue.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bookmark-outline-gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bookmark-outline-gray.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/uie_comment_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/uie_comment_normal@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/uie_thumb_selected@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/uie_thumb_selected@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/js/examples/Accessibility/check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/examples/Accessibility/check.png -------------------------------------------------------------------------------- /packages/rn-tester/js/examples/Accessibility/mixed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/examples/Accessibility/mixed.png -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: '> 3 | clang-diagnostic-*, 4 | ' 5 | InheritParentConfig: true 6 | ... 7 | -------------------------------------------------------------------------------- /packages/react-native/template/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/debug.keystore -------------------------------------------------------------------------------- /packages/react-native/template/ios/HelloWorld/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : RCTAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/red_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/red_square.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bottom-nav-bookmark-fill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bottom-nav-bookmark-fill.png -------------------------------------------------------------------------------- /packages/rn-tester/js/examples/Accessibility/uncheck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/examples/Accessibility/uncheck.png -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "module:metro-react-native-babel-preset" 4 | ], 5 | "plugins": [ 6 | "babel-plugin-transform-flow-enums" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/__tests__/img/img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/Libraries/Image/__tests__/img/img1.png -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/__tests__/img/img2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/Libraries/Image/__tests__/img/img2.png -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/react/reactperflogger/reactperflogger/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | InheritParentConfig: true 3 | Checks: '> 4 | clang-diagnostic-*, 5 | ' 6 | ... 7 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/RNTesterBundle/ImageInBundle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/RNTesterBundle/ImageInBundle.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/blue_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/blue_square.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bottom-nav-apis-icon-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bottom-nav-apis-icon-active.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bottom-nav-bookmark-outline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bottom-nav-bookmark-outline.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/uie_comment_highlighted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/uie_comment_highlighted@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/font/rubik_bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/font/rubik_bold.ttf -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bottom-nav-apis-icon-inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bottom-nav-apis-icon-inactive.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/tumblr_mfqekpMktw1rn90umo1_500.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/tumblr_mfqekpMktw1rn90umo1_500.gif -------------------------------------------------------------------------------- /packages/react-native/Libraries/LogBox/UI/LogBoxImages/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/Libraries/LogBox/UI/LogBoxImages/close.png -------------------------------------------------------------------------------- /packages/react-native/Libraries/LogBox/UI/LogBoxImages/loader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/Libraries/LogBox/UI/LogBoxImages/loader.png -------------------------------------------------------------------------------- /packages/react-native/Libraries/NewAppScreen/components/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/Libraries/NewAppScreen/components/logo.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/font/rubik_light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/font/rubik_light.ttf -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/font/rubik_medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/font/rubik_medium.ttf -------------------------------------------------------------------------------- /packages/hermes-inspector-msggen/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ "@babel/preset-flow", ["@babel/preset-env", { 3 | "targets": { 4 | "node": "current" 5 | } 6 | }] 7 | ], 8 | } 9 | -------------------------------------------------------------------------------- /packages/rn-tester/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "module:metro-react-native-babel-preset" 4 | ], 5 | "plugins": [ 6 | "babel-plugin-transform-flow-enums" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/assets/fonts/notoserif.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/assets/fonts/notoserif.ttf -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/drawable/tv_banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/drawable/tv_banner.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/font/rubik_regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/font/rubik_regular.ttf -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bottom-nav-components-icon-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bottom-nav-components-icon-active.png -------------------------------------------------------------------------------- /packages/rn-tester/js/assets/bottom-nav-components-icon-inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/js/assets/bottom-nav-components-icon-inactive.png -------------------------------------------------------------------------------- /packages/react-native-gradle-plugin/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native-gradle-plugin/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/drawable/legacy_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/drawable/legacy_image.png -------------------------------------------------------------------------------- /packages/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png -------------------------------------------------------------------------------- /packages/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png -------------------------------------------------------------------------------- /packages/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-right.png -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/hermes/inspector/docs/InspectorFSM.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/ReactCommon/hermes/inspector/docs/InspectorFSM.pdf -------------------------------------------------------------------------------- /packages/react-native/template/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/font/rubik_medium_italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/font/rubik_medium_italic.ttf -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /packages/react-native/template/_prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | bracketSameLine: true, 4 | bracketSpacing: false, 5 | singleQuote: true, 6 | trailingComma: 'all', 7 | }; 8 | -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/drawable/ic_menu_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/drawable/ic_menu_black_24dp.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ✋ To keep the backlog clean and actionable, issues will be 2 | 🚫 closed if they do not follow one of the issue templates: 3 | 👉 https://github.com/facebook/react-native/issues/new/choose 4 | 5 | -------------------------------------------------------------------------------- /packages/react-native/template/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version 4 | ruby ">= 2.6.10" 5 | 6 | gem 'cocoapods', '~> 1.12' 7 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/assets/fonts/notoserif_bold_italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/assets/fonts/notoserif_bold_italic.ttf -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/drawable/ic_create_black_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/drawable/ic_create_black_48dp.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version 4 | ruby ">= 2.6.10" 5 | 6 | gem 'cocoapods', '~> 1.12' 7 | gem 'activesupport', '>= 6.1.7.3' 8 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/drawable/ic_settings_black_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/drawable/ic_settings_black_48dp.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /packages/react-native-codegen/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "arrowParens": "avoid", 3 | "bracketSameLine": true, 4 | "bracketSpacing": false, 5 | "requirePragma": true, 6 | "singleQuote": true, 7 | "trailingComma": "all" 8 | } 9 | -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/iTunesArtwork@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/AppIcon.appiconset/iTunesArtwork@1x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/tabnav_list.imageset/tabnav_list@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/tabnav_list.imageset/tabnav_list@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "arrowParens": "avoid", 3 | "bracketSameLine": true, 4 | "bracketSpacing": false, 5 | "requirePragma": true, 6 | "singleQuote": true, 7 | "trailingComma": "all", 8 | "endOfLine": "lf" 9 | } 10 | -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RNTester App 3 | com.facebook.react.uiapp.blobs 4 | 5 | -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/react-native/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/NavBarButtonPlus.imageset/NavBarButtonPlus@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/NavBarButtonPlus.imageset/NavBarButtonPlus@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/story-background.imageset/story-background@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/story-background.imageset/story-background@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/tabnav_settings.imageset/tabnav_settings@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/tabnav_settings.imageset/tabnav_settings@3x.png -------------------------------------------------------------------------------- /packages/react-native/template/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/tabnav_notification.imageset/tabnav_notification@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/Images.xcassets/tabnav_notification.imageset/tabnav_notification@3x.png -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/bridgeless/README.md: -------------------------------------------------------------------------------- 1 | # Bridgeless Mode for iOS 2 | 3 | This library is not ready for integration for production nor local experimentation. Expect breaking changes regularly if you use any of these APIs. Use at your own risk! 4 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #eecc0000 4 | #ffffffff 5 | 6 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/RNTesterBundle/OtherImages.xcassets/ImageInAssetCatalog.imageset/react-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTester/RNTesterBundle/OtherImages.xcassets/ImageInAssetCatalog.imageset/react-logo.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridgeless/README.md: -------------------------------------------------------------------------------- 1 | # Bridgeless Mode for Android 2 | 3 | This library is not ready for integration for production nor local experimentation. Expect breaking changes regularly if you use any of these APIs. Use at your own risk! 4 | -------------------------------------------------------------------------------- /packages/react-native/template/ios/HelloWorld/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testTextExample_1-iOS12@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testTextExample_1-iOS12@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testTextExample_1-iOS13@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testTextExample_1-iOS13@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testViewExample_1-iOS12@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testViewExample_1-iOS12@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testViewExample_1-iOS13@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testViewExample_1-iOS13@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testLayoutExample_1-iOS12@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testLayoutExample_1-iOS12@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testLayoutExample_1-iOS13@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testLayoutExample_1-iOS13@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testSliderExample_1-iOS12@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testSliderExample_1-iOS12@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testSwitchExample_1-iOS12@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testSwitchExample_1-iOS12@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testSwitchExample_1-iOS13@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testSwitchExample_1-iOS13@2x.png -------------------------------------------------------------------------------- /packages/typescript-config/README.md: -------------------------------------------------------------------------------- 1 | # @react-native/typescript-config 2 | 3 | This package provides the default `tsconfig.json` used by newly built React Native apps. 4 | 5 | This template is customized for specific versions of React Native, and should be updated in sync with the rest of your app. 6 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/core/RawValue.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "RawValue.h" 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/core/StateUpdate.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "StateUpdate.h" 9 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testScrollViewExample_1-iOS12@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testScrollViewExample_1-iOS12@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testScrollViewExample_1-iOS13@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testScrollViewExample_1-iOS13@2x.png -------------------------------------------------------------------------------- /packages/react-native-gradle-plugin/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-as/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-az/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-be/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-bs/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ca/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-cb/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-de/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-hy/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-is/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-kk/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ku/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ky/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-lo/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-lv/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-mn/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-mr/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ne/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ps/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-qz/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-sn/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-so/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-tg/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-tk/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-uz/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-wo/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-zu/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/systeminfo/values/values.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8081 4 | @integer/react_native_dev_server_port 5 | 6 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/IntegrationTests-IntegrationTestsApp/testImageSnapshotTest_1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/IntegrationTests-IntegrationTestsApp/testImageSnapshotTest_1@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/IntegrationTests-IntegrationTestsApp/testImageSnapshotTest_1@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/IntegrationTests-IntegrationTestsApp/testImageSnapshotTest_1@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/IntegrationTests-IntegrationTestsApp/testSimpleSnapshotTest_1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/IntegrationTests-IntegrationTestsApp/testSimpleSnapshotTest_1@2x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/IntegrationTests-IntegrationTestsApp/testSimpleSnapshotTest_1@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/IntegrationTests-IntegrationTestsApp/testSimpleSnapshotTest_1@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/packages-rn-tester-js-RNTesterApp.ios/testTextExample_1-iOS16@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/packages-rn-tester-js-RNTesterApp.ios/testTextExample_1-iOS16@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/packages-rn-tester-js-RNTesterApp.ios/testViewExample_1-iOS16@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/packages-rn-tester-js-RNTesterApp.ios/testViewExample_1-iOS16@3x.png -------------------------------------------------------------------------------- /packages/react-native/template/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /packages/react-native/template/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'HelloWorld' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | includeBuild('../node_modules/@react-native/gradle-plugin') 5 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/packages-rn-tester-js-RNTesterApp.ios/testLayoutExample_1-iOS16@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/packages-rn-tester-js-RNTesterApp.ios/testLayoutExample_1-iOS16@3x.png -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/packages-rn-tester-js-RNTesterApp.ios/testSwitchExample_1-iOS16@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/react-native/HEAD/packages/rn-tester/RNTesterIntegrationTests/ReferenceImages/packages-rn-tester-js-RNTesterApp.ios/testSwitchExample_1-iOS16@3x.png -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/scheduler/SchedulerToolbox.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "SchedulerToolbox.h" 9 | -------------------------------------------------------------------------------- /packages/react-native/scripts/native_modules.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. 2 | # 3 | # This source code is licensed under the MIT license found in the 4 | # LICENSE file in the root directory of this source tree. 5 | 6 | require_relative '../../@react-native-community/cli-platform-ios/native_modules' 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/mounting/ShadowTreeRevision.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "ShadowTreeRevision.h" 9 | -------------------------------------------------------------------------------- /packages/virtualized-lists/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | export * from './Lists/VirtualizedList'; 11 | -------------------------------------------------------------------------------- /packages/react-native-codegen/src/__tests__/__snapshots__/SchemaValidator-test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`SchemaValidator fails on components across modules with same name 1`] = ` 4 | Array [ 5 | "Duplicate components found with name Component1. Found in modules Module1, Module2", 6 | ] 7 | `; 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/hermes/inspector/docs/GenerateInspectorFSM.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) Meta Platforms, Inc. and affiliates. 3 | # 4 | # This source code is licensed under the MIT license found in the 5 | # LICENSE file in the root directory of this source tree. 6 | 7 | dot -Tpdf InspectorFSM.gv -o InspectorFSM.pdf 8 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | **/main.js 2 | **/staticBundle.js 3 | docs/generatedComponentApiDocs.js 4 | packages/react-native/flow/ 5 | packages/react-native/Libraries/Renderer/* 6 | packages/react-native/Libraries/vendor/**/* 7 | node_modules/ 8 | packages/*/node_modules 9 | packages/react-native-codegen/lib 10 | tools/eslint/rules/sort-imports.js 11 | -------------------------------------------------------------------------------- /packages/react-native/flow-typed/npm/base64-js_v1.x.x.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @flow strict 3 | * @format 4 | */ 5 | 6 | declare module 'base64-js' { 7 | declare module.exports: { 8 | byteLength: string => number, 9 | fromByteArray: (Uint8Array | Array) => string, 10 | toByteArray: string => Uint8Array, 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterPods.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterPods.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/React/Fabric/RCTPrimitives.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | typedef NSInteger ReactTag; 11 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/element/Element.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "Element.h" 9 | 10 | // Intentionally empty. 11 | -------------------------------------------------------------------------------- /packages/react-native/React/Base/RCTCxxConvert.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTCxxConvert.h" 9 | 10 | @implementation RCTCxxConvert 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/types/private/Utilities.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | export type Constructor = new (...args: any[]) => T; 11 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/views/modal/anim/catalyst_slide_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/views/modal/anim/catalyst_slide_up.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /.circleci/README.md: -------------------------------------------------------------------------------- 1 | # Circle CI 2 | 3 | This directory is home to the Circle CI configuration file. Circle is our continuous integration service provider. You can see the overall status of React Native's builds at https://circleci.com/gh/facebook/react-native 4 | 5 | You may also see an individual PR's build status by scrolling down to the Checks section in the PR. 6 | -------------------------------------------------------------------------------- /packages/normalize-color/index.js.flow: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow strict 8 | */ 9 | 10 | declare module.exports: (color: ?(string | number)) => null | number; 11 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/element/ElementFragment.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "ElementFragment.h" 9 | 10 | // Intentionally empty. 11 | -------------------------------------------------------------------------------- /tools/eslint/README.md: -------------------------------------------------------------------------------- 1 | # react-native/tools/eslint 2 | 3 | This directory contains ESLint rules for the `react-native` repository itself. 4 | They are configured in `.eslintrc.js` using the `eslint-plugin-lint` package. 5 | 6 | For ESLint rules intended for projects that consume React Native, add them to 7 | the `@react-native-community/eslint-plugin` package instead. 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin-react-native/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | exports.rules = { 11 | 'platform-colors': require('./platform-colors'), 12 | }; 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/TurboModule/RCTExport.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | export interface TurboModule { 11 | getConstants?(): {}; 12 | } 13 | -------------------------------------------------------------------------------- /packages/react-native/rn-get-polyfills.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | 'use strict'; 11 | 12 | module.exports = require('@react-native/js-polyfills'); 13 | -------------------------------------------------------------------------------- /packages/rn-tester/NativeModuleExample/Screenshot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface ScreenshotManager : RCTViewManager 11 | @end 12 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Types/RootTagTypes.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow strict 8 | * @format 9 | */ 10 | 11 | export type {RootTag} from '../ReactNative/RootTag'; 12 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTAppState.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTAppState : RCTEventEmitter 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/.npmignore: -------------------------------------------------------------------------------- 1 | # Make sure we never publish ReactAndroid/build (Gradle output) 2 | # or ReactAndroid/.cxx (CMake output) to npm. 3 | # Those folders are huge (> 100MB)! 4 | build/ 5 | .cxx/ 6 | # Exclude buck config/jars for third-party libraries 7 | src/main/third-party/ 8 | # Exclude Android & JVM tests 9 | src/test/ 10 | src/androidTest/ 11 | -------------------------------------------------------------------------------- /packages/rn-tester/RCTTest/RCTSnapshotManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTSnapshotManager : RCTViewManager 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTSwitchManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTSwitchManager : RCTViewManager 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/yoga/cmake/yoga-config.cmake.in: -------------------------------------------------------------------------------- 1 | # Copyright (c) Facebook, Inc. and its affiliates. 2 | # 3 | # This source code is licensed under the MIT license found in the 4 | # LICENSE file in the root directory of this source tree. 5 | 6 | @PACKAGE_INIT@ 7 | 8 | include("${CMAKE_CURRENT_LIST_DIR}/yogaTargets.cmake") 9 | 10 | check_required_components(yoga) -------------------------------------------------------------------------------- /packages/react-native/jest/ReactNativeInternalFeatureFlagsMock.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | * @flow strict 9 | */ 10 | 11 | 'use strict'; 12 | 13 | module.exports = {}; 14 | -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /packages/react-native-codegen/src/parsers/errors.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export type ParserType = 'Flow' | 'TypeScript'; 9 | 10 | export declare class ParserError extends Error {} 11 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Animated/AnimatedPlatformConfig.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | * @format 9 | */ 10 | 11 | 'use strict'; 12 | 13 | export type PlatformConfig = {}; 14 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/RCTImageShadowView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTImageShadowView : RCTShadowView 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | * @flow strict-local 9 | */ 10 | 11 | import '../Core/InitializeCore'; 12 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/first-party/fb/include/fb/visibility.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #pragma once 9 | 10 | #define FBEXPORT __attribute__((visibility("default"))) 11 | -------------------------------------------------------------------------------- /packages/react-native/scripts/launchPackager.bat: -------------------------------------------------------------------------------- 1 | :: Copyright (c) Meta Platforms, Inc. and affiliates. 2 | :: 3 | :: This source code is licensed under the MIT license found in the 4 | :: LICENSE file in the root directory of this source tree. 5 | 6 | @echo off 7 | title Metro 8 | call .packager.bat 9 | cd ../../../ 10 | node "%~dp0..\cli.js" start 11 | pause 12 | exit 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/RCTImageViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTImageViewManager : RCTViewManager 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextView.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @implementation RCTVirtualTextView 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Vibration/RCTVibration.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTVibration : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTClipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTClipboard : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTKeyboardObserver.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTKeyboardObserver : RCTEventEmitter 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTActivityIndicatorView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTActivityIndicatorView : UIActivityIndicatorView 11 | @end 12 | -------------------------------------------------------------------------------- /packages/react-native/flow-typed/npm/stacktrace-parser_v0.1.x.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @flow strict 3 | * @format 4 | */ 5 | 6 | type StackFrame = { 7 | file: string, 8 | methodName: string, 9 | lineNumber: number, 10 | column: ?number, 11 | }; 12 | 13 | declare module 'stacktrace-parser' { 14 | declare module.exports: { 15 | parse: string => Array, 16 | }; 17 | } 18 | -------------------------------------------------------------------------------- /packages/react-native/template/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/ReactNative/HeadlessJsTaskError.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow strict-local 8 | * @format 9 | */ 10 | 11 | export default class HeadlessJsTaskError extends Error {} 12 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/first-party/jni-hack/README.md: -------------------------------------------------------------------------------- 1 | This buck module exists so that targets that need to be built against both 1) Android (where we can and should use the Android NDK jni headers) and 2) the host platform(generally for local unit tests) can depend on a single target and get the right jni header for whatever platform they're building against automatically. 2 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/core/ShadowNodeTraits.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "ShadowNodeTraits.h" 9 | 10 | namespace facebook::react {} // namespace facebook::react 11 | -------------------------------------------------------------------------------- /packages/react-native/template/metro.config.js: -------------------------------------------------------------------------------- 1 | const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config'); 2 | 3 | /** 4 | * Metro configuration 5 | * https://facebook.github.io/metro/docs/configuration 6 | * 7 | * @type {import('metro-config').MetroConfig} 8 | */ 9 | const config = {}; 10 | 11 | module.exports = mergeConfig(getDefaultConfig(__dirname), config); 12 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Blob/RCTFileReaderModule.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTFileReaderModule : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTInputAccessoryViewContent : UIView 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/Base/RCTInitializing.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @protocol RCTInitializing 11 | 12 | - (void)initialize; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/React/Base/RCTInvalidating.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @protocol RCTInvalidating 11 | 12 | - (void)invalidate; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTSegmentedControlManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTSegmentedControlManager : RCTViewManager 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-da/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Kører %1$s 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-fa/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | اجرای %1$s 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-sl/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | V teku %1$s 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-sv/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Kör %1$s 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/RCTGIFImageDecoder.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTGIFImageDecoder : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/RCTImageEditingManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTImageEditingManager : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-fr/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | En cours %1$s 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-tl/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Tumatakbong %1$s 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ur/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %1$s چل رہا ہے 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTAnimatedNode.h" 9 | 10 | @interface RCTTrackingAnimatedNode : RCTAnimatedNode 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryShadowView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTInputAccessoryShadowView : RCTShadowView 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RefreshControl/RCTRefreshControlManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTRefreshControlManager : RCTViewManager 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/ScrollView/RCTScrollContentViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTScrollContentViewManager : RCTViewManager 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "jni.h" 9 | 10 | namespace YGJNIVanilla { 11 | void registerNatives(JNIEnv* env); 12 | }; 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-bg/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Управление на %1$s 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-el/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Προβάλλεται: %1$s 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-fr-rCA/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %1$s en cours 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-sw/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Linaendeshwa %1$s 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-tr/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %1$s çalıştırıyor 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/template.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = { 9 | placeholderName: 'HelloWorld', 10 | titlePlaceholder: 'Hello App Display Name', 11 | templateDir: './template', 12 | }; 13 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: https://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | # Unix-style newlines with a newline ending every file 7 | [*] 8 | end_of_line = lf 9 | insert_final_newline = true 10 | indent_style = space 11 | indent_size = 2 12 | 13 | [*.gradle] 14 | indent_size = 4 15 | 16 | [*.kts] 17 | indent_size = 4 18 | 19 | [BUCK] 20 | indent_size = 4 21 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/AssetRegistry.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow strict 8 | * @format 9 | */ 10 | 11 | 'use strict'; 12 | 13 | module.exports = require('@react-native/assets-registry/registry'); 14 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/RCTLocalAssetImageLoader.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTLocalAssetImageLoader : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTAnimationDriver.h" 9 | 10 | @interface RCTDecayAnimation : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTAnimationDriver.h" 9 | 10 | @interface RCTFrameAnimation : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTAnimationDriver.h" 9 | 10 | @interface RCTSpringAnimation : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTValueAnimatedNode.h" 9 | 10 | @interface RCTModuloAnimatedNode : RCTValueAnimatedNode 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTInputAccessoryViewManager : RCTViewManager 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTBaseTextShadowView.h" 9 | 10 | @interface RCTVirtualTextShadowView : RCTBaseTextShadowView 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTConvert+Transform.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTConvert.h" 9 | 10 | @interface RCTConvert (Transform) 11 | 12 | + (CATransform3D)CATransform3D:(id)json; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/first-party/jni-hack/jni.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #pragma once 9 | 10 | #ifdef __ANDROID__ 11 | #include_next 12 | #else 13 | #include "real/jni.h" 14 | #endif 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/components/safeareaview/SafeAreaViewState.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "SafeAreaViewState.h" 9 | 10 | namespace facebook::react {} // namespace facebook::react 11 | -------------------------------------------------------------------------------- /packages/rn-tester/RCTTest/FBSnapshotTestCase/UIImage+Diff.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface UIImage (Diff) 11 | 12 | - (UIImage *)diffWithImage:(UIImage *)image; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native-codegen/src/parsers/schema/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import type { SchemaType } from '../../CodegenSchema'; 9 | 10 | export declare function parse(filename: string): SchemaType | undefined; 11 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTValueAnimatedNode.h" 9 | 10 | @interface RCTAdditionAnimatedNode : RCTValueAnimatedNode 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTValueAnimatedNode.h" 9 | 10 | @interface RCTDiffClampAnimatedNode : RCTValueAnimatedNode 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTValueAnimatedNode.h" 9 | 10 | @interface RCTDivisionAnimatedNode : RCTValueAnimatedNode 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTBaseTextViewManager.h" 9 | 10 | @interface RCTVirtualTextViewManager : RCTBaseTextViewManager 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTDeviceInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface RCTDeviceInfo : NSObject 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/ScrollView/RCTScrollContentView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface RCTScrollContentView : RCTView 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-en-rGB/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React native dev menu (%1$s) 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/views/modal/anim/catalyst_fade_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/views/modal/anim/catalyst_fade_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /packages/react-native/sdks/hermes-engine/utils/copy-hermes-xcode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) Meta Platforms, Inc. and affiliates. 3 | # 4 | # This source code is licensed under the MIT license found in the 5 | # LICENSE file in the root directory of this source tree. 6 | 7 | echo "This file is no-op now. Remove \"[RN] Copy Hermes Framework\" script phase from your main target if you don't want to see this message." 8 | -------------------------------------------------------------------------------- /packages/rn-tester/RCTTest/FBSnapshotTestCase/UIImage+Compare.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface UIImage (Compare) 11 | 12 | - (BOOL)compareWithImage:(UIImage *)image; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | 'use strict'; 11 | 12 | module.exports = require('../UnimplementedViews/UnimplementedView'); 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | 'use strict'; 11 | 12 | module.exports = require('../UnimplementedViews/UnimplementedView'); 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/RCTUIImageViewAnimated.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface RCTUIImageViewAnimated : UIImageView 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTSubtractionAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTValueAnimatedNode.h" 9 | 10 | @interface RCTSubtractionAnimatedNode : RCTValueAnimatedNode 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTBaseTextViewManager.h" 9 | 10 | @interface RCTBaseTextInputViewManager : RCTBaseTextViewManager 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Utilities/DeviceInfo.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | * @flow strict-local 9 | */ 10 | 11 | import NativeDeviceInfo from './NativeDeviceInfo'; 12 | 13 | module.exports = NativeDeviceInfo; 14 | -------------------------------------------------------------------------------- /packages/react-native/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTInputAccessoryContentView : UIView 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ka/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React Native-ის დეველოპერთა მენიუ (%1$s) 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/components/image/tests/ImageTest.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include 9 | 10 | #include 11 | 12 | TEST(ImageTest, testSomething) { 13 | // TODO 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/components/text/tests/TextTest.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include 9 | 10 | #include 11 | 12 | TEST(TextTest, testSomething) { 13 | // TODO: 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/graphics/tests/GraphicsTest.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include 9 | 10 | #include 11 | 12 | TEST(GraphicsTest, testSomething) { 13 | // TODO 14 | } 15 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/NativeExampleViews/FlexibleSizeExampleView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface FlexibleSizeExampleView : RCTView 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/model/ModelPackageJson.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.model 9 | 10 | data class ModelPackageJson(val codegenConfig: ModelCodegenConfig?) 11 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTValueAnimatedNode.h" 9 | 10 | @interface RCTMultiplicationAnimatedNode : RCTValueAnimatedNode 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTPlatform.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface RCTPlatform : NSObject 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-sq/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Menyja e zhvilluesit e React Native (%1$s) 7 | 8 | -------------------------------------------------------------------------------- /packages/react-native/flow/Position.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow strict 8 | * @nolint 9 | * @format 10 | */ 11 | 12 | declare class Position { 13 | coords: Coordinates; 14 | timestamp: number; 15 | mocked: boolean; 16 | } 17 | -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/model/ModelCodegenConfigAndroid.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.model 9 | 10 | data class ModelCodegenConfigAndroid(val javaPackageName: String?) 11 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTActionSheetManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface RCTActionSheetManager : NSObject 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTSourceCode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface RCTSourceCode : NSObject 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTBorderCurve.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | typedef NS_ENUM(NSInteger, RCTBorderCurve) { 11 | RCTBorderCurveContinuous = 0, 12 | RCTBorderCurveCircular, 13 | }; 14 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/nativemodule/core/ReactCommon/CallbackWrapper.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #pragma once 9 | 10 | // This header is left here for compatibility reasons. 11 | #include 12 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/nativemodule/core/ReactCommon/LongLivedObject.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #pragma once 9 | 10 | // This header is left here for compatibility reasons. 11 | #include 12 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/NativeExampleViews/UpdatePropertiesExampleView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface UpdatePropertiesExampleView : RCTView 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/rn-tester/js/examples/Snapshot/SnapshotViewIOS.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | 'use strict'; 11 | 12 | module.exports = require('react-native/Libraries/Components/UnimplementedViews/UnimplementedView'); 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Modal/ModalInjection.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow strict-local 8 | * @format 9 | */ 10 | 11 | import typeof Modal from './Modal'; 12 | 13 | export default { 14 | unstable_Modal: (null: ?Modal), 15 | }; 16 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/ReactNative/RootTag.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | import type * as React from 'react'; 11 | 12 | export type RootTag = number; 13 | export const RootTagContext: React.Context; 14 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/ScrollView/RCTScrollContentShadowView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface RCTScrollContentShadowView : RCTShadowView 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/components/scrollview/tests/ScrollViewTest.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include 9 | 10 | #include 11 | 12 | TEST(ScrollViewTest, testSomething) { 13 | // TODO 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Blob/__mocks__/BlobModule.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow strict 8 | * @format 9 | */ 10 | 11 | const BlobModule = { 12 | createFromParts() {}, 13 | release() {}, 14 | }; 15 | 16 | module.exports = BlobModule; 17 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/StyleSheet/PointPropType.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | * @flow strict 9 | */ 10 | 11 | 'use strict'; 12 | 13 | export type PointProp = $ReadOnly<{ 14 | x: number, 15 | y: number, 16 | ... 17 | }>; 18 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/Text/RCTTextViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "RCTBaseTextViewManager.h" 11 | 12 | @interface RCTTextViewManager : RCTBaseTextViewManager 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/React/Base/RCTNullability.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | typedef NS_ENUM(NSInteger, RCTNullability) { 11 | RCTNullabilityUnspecified, 12 | RCTNullable, 13 | RCTNonnullable, 14 | }; 15 | -------------------------------------------------------------------------------- /packages/react-native/React/DevSupport/RCTDevLoadingViewSetEnabled.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | RCT_EXTERN void RCTDevLoadingViewSetEnabled(BOOL enabled); 11 | RCT_EXTERN BOOL RCTDevLoadingViewGetEnabled(void); 12 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/hermes/inspector/tools/format: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DIR="$(dirname "${BASH_SOURCE[0]}")" 4 | cd "$DIR" 5 | 6 | FBSOURCE="$(hg root)" 7 | CLANG_FORMAT="$FBSOURCE/tools/third-party/clang-format/clang-format" 8 | SRC="$FBSOURCE/xplat/js/react-native-github/packages/react-native/ReactCommon/hermes/inspector" 9 | 10 | find "$SRC" '(' -name '*.h' -or -name '*.cpp' ')' -exec "$CLANG_FORMAT" -i -style=file '{}' ';' 11 | -------------------------------------------------------------------------------- /packages/react-native/scripts/cocoapods/__tests__/test_utils/TargetDefinitionMock.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. 2 | # 3 | # This source code is licensed under the MIT license found in the 4 | # LICENSE file in the root directory of this source tree. 5 | 6 | class TargetDefinitionMock 7 | attr_reader :build_type 8 | 9 | def initialize(build_type) 10 | @build_type = build_type 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.bridge; 9 | 10 | public interface JSIModuleProvider { 11 | 12 | T get(); 13 | } 14 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressure.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.bridge; 9 | 10 | public enum MemoryPressure { 11 | UI_HIDDEN, 12 | MODERATE, 13 | CRITICAL 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ContentSizeWatcher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.views.textinput; 9 | 10 | public interface ContentSizeWatcher { 11 | void onLayout(); 12 | } 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/react/jni/OnLoad.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #pragma once 9 | 10 | #include 11 | 12 | namespace facebook::react { 13 | 14 | jmethodID getLogMarkerMethod(); 15 | 16 | } // namespace facebook::react 17 | -------------------------------------------------------------------------------- /packages/rn-tester/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface RCTWrapperExampleView : UIView 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArrayInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.bridge; 9 | 10 | public interface NativeArrayInterface { 11 | @Override 12 | String toString(); 13 | } 14 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMethod.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.views.image; 9 | 10 | public enum ImageResizeMethod { 11 | AUTO, 12 | RESIZE, 13 | SCALE 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropState.mm: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "LegacyViewManagerInteropState.h" 9 | 10 | namespace facebook::react { 11 | } // namespace facebook::react 12 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = android-31 4 | 5 | [kotlin] 6 | compile_against_abis = True 7 | kotlin_version = 1.6.10 8 | 9 | [download] 10 | max_number_of_retries = 3 11 | 12 | [maven_repositories] 13 | central = https://repo1.maven.org/maven2 14 | google = https://maven.google.com/ 15 | 16 | [alias] 17 | rntester = //packages/rn-tester/android/app:app 18 | 19 | [buildfile] 20 | includes = //tools/build_defs/oss/preload.bzl 21 | -------------------------------------------------------------------------------- /packages/polyfills/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | 'use strict'; 11 | 12 | module.exports = () => [ 13 | require.resolve('./console.js'), 14 | require.resolve('./error-guard.js'), 15 | require.resolve('./Object.es8.js'), 16 | ]; 17 | -------------------------------------------------------------------------------- /packages/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/TestReactExtension.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react 9 | 10 | import org.gradle.api.Project 11 | 12 | class TestReactExtension(project: Project) : ReactExtension(project) 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTSurfaceHostingComponentController : CKComponentController 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/ReactConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.common; 9 | 10 | public class ReactConstants { 11 | 12 | public static final String TAG = "ReactNative"; 13 | } 14 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/systrace/TraceListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.systrace; 9 | 10 | public interface TraceListener { 11 | void onTraceStarted(); 12 | 13 | void onTraceStopped(); 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/local-cli/cli.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | 'use strict'; 11 | 12 | var cli = require('@react-native-community/cli'); 13 | 14 | if (require.main === module) { 15 | cli.run(); 16 | } 17 | 18 | module.exports = cli; 19 | -------------------------------------------------------------------------------- /packages/react-native-gradle-plugin/settings.gradle.kts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | pluginManagement { 9 | repositories { 10 | mavenCentral() 11 | google() 12 | gradlePluginPortal() 13 | } 14 | } 15 | 16 | rootProject.name = "react-native-gradle-plugin" 17 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTColorAnimatedNode : RCTAnimatedNode 11 | 12 | @property (nonatomic, assign) int32_t color; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTObjectAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTAnimatedNode.h" 9 | 10 | @interface RCTObjectAnimatedNode : RCTAnimatedNode 11 | 12 | @property (nonatomic, strong, readonly) id value; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/RawText/RCTRawTextViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface RCTRawTextViewManager : RCTViewManager 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Utilities/LoadingView.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | * @flow strict-local 9 | */ 10 | 11 | 'use strict'; 12 | 13 | module.exports = { 14 | showMessage(message: string, type: 'load' | 'refresh') {}, 15 | hide() {}, 16 | }; 17 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/SafeAreaView/RCTSafeAreaShadowView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface RCTSafeAreaShadowView : RCTShadowView 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.devsupport.interfaces; 9 | 10 | public interface BundleLoadCallback { 11 | void onSuccess(); 12 | } 13 | -------------------------------------------------------------------------------- /packages/react-native/scripts/cocoapods/__tests__/test_utils/systemUtils.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. 2 | # 3 | # This source code is licensed under the MIT license found in the 4 | # LICENSE file in the root directory of this source tree. 5 | 6 | $collected_commands = [] 7 | 8 | def system(command) 9 | $collected_commands.push(command) 10 | end 11 | 12 | def system_reset_commands() 13 | $collected_commands = [] 14 | end 15 | -------------------------------------------------------------------------------- /packages/react-native/types/__typetests__/legacy-properties.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | import * as React from 'react'; 11 | import {TextInputProperties} from 'react-native'; 12 | 13 | class Test extends React.Component {} 14 | -------------------------------------------------------------------------------- /packages/react-native/types/public/Insets.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | export interface Insets { 11 | top?: number | undefined; 12 | left?: number | undefined; 13 | bottom?: number | undefined; 14 | right?: number | undefined; 15 | } 16 | -------------------------------------------------------------------------------- /packages/react-native-codegen/buck_tests/emptyFile.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | // TODO: Import every prop and event to asset they're generated 11 | 12 | int main() { 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Core/ReactNativeVersion.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @generated by scripts/set-rn-version.js 3 | * 4 | * Copyright (c) Meta Platforms, Inc. and affiliates. 5 | * 6 | * This source code is licensed under the MIT license found in the 7 | * LICENSE file in the root directory of this source tree. 8 | * 9 | * @flow strict 10 | */ 11 | 12 | exports.version = { 13 | major: 1000, 14 | minor: 0, 15 | patch: 0, 16 | prerelease: null, 17 | }; 18 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTAnimatedNode.h" 9 | 10 | @interface RCTStyleAnimatedNode : RCTAnimatedNode 11 | 12 | - (NSDictionary *)propsDictionary; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/BaseText/RCTBaseTextViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface RCTBaseTextViewManager : RCTViewManager 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTDevLoadingView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface RCTDevLoadingView : NSObject 12 | @end 13 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/SafeAreaView/RCTSafeAreaViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface RCTSafeAreaViewManager : RCTViewManager 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/hermes/executor/JSITracing.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include 9 | 10 | namespace facebook { 11 | namespace jsi { 12 | 13 | void addNativeTracingHooks(Runtime &rt); 14 | 15 | } // namespace jsi 16 | } // namespace facebook 17 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHost+Internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTHost.h" 9 | 10 | @interface RCTHost (Internal) 11 | 12 | - (void)registerSegmentWithId:(NSNumber *)segmentId path:(NSString *)path; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/components/text/TextShadowNode.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "TextShadowNode.h" 9 | 10 | namespace facebook::react { 11 | 12 | extern const char TextComponentName[] = "Text"; 13 | 14 | } // namespace facebook::react 15 | -------------------------------------------------------------------------------- /packages/react-native/types/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": ["es6"], 5 | "noImplicitAny": true, 6 | "noImplicitThis": true, 7 | "strictFunctionTypes": true, 8 | "strictNullChecks": true, 9 | "types": [], 10 | "jsx": "react", 11 | "noEmit": true, 12 | "forceConsistentCasingInFileNames": true, 13 | "paths": {"react-native": ["."]} 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/RNTester.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.network.client 8 | 9 | com.apple.security.personal-information.photos-library 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /packages/react-native-codegen/src/SchemaValidator.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import type { SchemaType } from './CodegenSchema'; 9 | 10 | export declare function getErrors(schema: SchemaType): readonly string[]; 11 | export declare function validate(schema: SchemaType): void; 12 | -------------------------------------------------------------------------------- /packages/react-native-codegen/src/parsers/parsers-utils.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | * @flow strict 9 | */ 10 | 11 | 'use strict'; 12 | 13 | function nullGuard(fn: () => T): ?T { 14 | return fn(); 15 | } 16 | 17 | module.exports = { 18 | nullGuard, 19 | }; 20 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Image/RCTImageBlurUtils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | 13 | RCT_EXTERN UIImage *RCTBlurredImageWithRadius(UIImage *inputImage, CGFloat radius); 14 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/README.md: -------------------------------------------------------------------------------- 1 | # Building React Native for Android 2 | 3 | See the [Building from Source guide](https://reactnative.dev/contributing/how-to-build-from-source#prerequisites) on the React Native website. 4 | 5 | # Running tests 6 | 7 | When you submit a pull request CircleCI will automatically run all tests. 8 | To run tests locally, see [Testing guide](https://reactnative.dev/contributing/how-to-run-and-write-tests) on the React Native website. 9 | -------------------------------------------------------------------------------- /packages/react-native/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | /** 3 | * Copyright (c) Meta Platforms, Inc. and affiliates. 4 | * 5 | * This source code is licensed under the MIT license found in the 6 | * LICENSE file in the root directory of this source tree. 7 | * 8 | * @format 9 | */ 10 | 11 | 'use strict'; 12 | 13 | var cli = require('@react-native-community/cli'); 14 | 15 | if (require.main === module) { 16 | cli.run(); 17 | } 18 | 19 | module.exports = cli; 20 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTAnimatedNode.h" 9 | 10 | @interface RCTTransformAnimatedNode : RCTAnimatedNode 11 | 12 | - (NSDictionary *)propsDictionary; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTAlertController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface RCTAlertController : UIAlertController 11 | 12 | - (void)show:(BOOL)animated completion:(void (^)(void))completion; 13 | - (void)hide; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/androidTest/js/TestBundle.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | 'use strict'; 11 | 12 | const {AppRegistry} = require('react-native'); 13 | const TestApps = require('./TestApps'); 14 | 15 | AppRegistry.registerConfig(TestApps); 16 | -------------------------------------------------------------------------------- /packages/react-native/scripts/cocoapods/codegen_script_phase_extractor.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. 2 | # 3 | # This source code is licensed under the MIT license found in the 4 | # LICENSE file in the root directory of this source tree. 5 | 6 | class CodegenScriptPhaseExtractor 7 | def initialize() 8 | end 9 | 10 | def extract_script_phase(options) 11 | get_script_phases_with_codegen_discovery(options) 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/tabnav_list.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "scale" : "3x", 14 | "filename" : "tabnav_list@3x.png" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface RCTWrapperExampleViewController : UIViewController 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTBorderStyle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | typedef NS_ENUM(NSInteger, RCTBorderStyle) { 11 | RCTBorderStyleUnset = 0, 12 | RCTBorderStyleSolid, 13 | RCTBorderStyleDotted, 14 | RCTBorderStyleDashed, 15 | }; 16 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/components/text/RawTextShadowNode.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "RawTextShadowNode.h" 9 | 10 | namespace facebook::react { 11 | 12 | extern const char RawTextComponentName[] = "RawText"; 13 | 14 | } // namespace facebook::react 15 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/tabnav_settings.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "scale" : "3x", 14 | "filename" : "tabnav_settings@3x.png" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterUnitTests/RNTesterUnitTestsBundle.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | 'use strict'; 11 | 12 | // eslint-disable-next-line no-unused-vars 13 | const __fbBatchedBridge = { 14 | flushedQueue: function () { 15 | return null; 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /IntegrationTests/launchWebSocketServer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) Meta Platforms, Inc. and affiliates. 3 | # 4 | # This source code is licensed under the MIT license found in the 5 | # LICENSE file in the root directory of this source tree. 6 | 7 | THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd) 8 | pushd "$THIS_DIR" || exit 9 | ./websocket_integration_test_server.js 10 | popd || exit 11 | 12 | echo "Process terminated." 13 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Animated/useAnimatedValue.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | import type {Animated} from './Animated'; 11 | 12 | export function useAnimatedValue( 13 | initialValue: number, 14 | config?: Animated.AnimatedConfig, 15 | ): Animated.Value; 16 | -------------------------------------------------------------------------------- /packages/react-native/React/CoreModules/RCTLogBox.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import "RCTLogBoxView.h" 10 | 11 | @interface RCTLogBox : NSObject 12 | 13 | #if RCT_DEV_MENU 14 | 15 | - (void)setRCTLogBoxView:(RCTLogBoxView *)view; 16 | 17 | #endif 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/Responder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.packagerconnection; 9 | 10 | public interface Responder { 11 | void respond(Object result); 12 | 13 | void error(Object error); 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/yoga/yoga/YGValue.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include 9 | 10 | const YGValue YGValueZero = {0, YGUnitPoint}; 11 | const YGValue YGValueUndefined = {YGUndefined, YGUnitUndefined}; 12 | const YGValue YGValueAuto = {YGUndefined, YGUnitAuto}; 13 | -------------------------------------------------------------------------------- /packages/react-native/scripts/cocoapods/__tests__/test_utils/LocalPodspecPatchMock.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. 2 | # 3 | # This source code is licensed under the MIT license found in the 4 | # LICENSE file in the root directory of this source tree. 5 | 6 | module LocalPodspecPatch 7 | def self.mock_local_podspecs(pods) 8 | @@local_podspecs = pods 9 | end 10 | 11 | def reset() 12 | @@local_podspecs = [] 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /packages/react-native/template/__tests__/App.test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: import explicitly to use the types shiped with jest. 10 | import {it} from '@jest/globals'; 11 | 12 | // Note: test renderer must be required after react-native. 13 | import renderer from 'react-test-renderer'; 14 | 15 | it('renders correctly', () => { 16 | renderer.create(); 17 | }); 18 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/NavBarButtonPlus.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "filename" : "NavBarButtonPlus@3x.png", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/story-background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "story-background@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /scripts/circleci/exec_swallow_error.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) Meta Platforms, Inc. and affiliates. 3 | # 4 | # This source code is licensed under the MIT license found in the 5 | # LICENSE file in the root directory of this source tree. 6 | 7 | # execute command 8 | "$@" 9 | 10 | # check status 11 | STATUS=$? 12 | if [ $STATUS == 0 ]; then 13 | echo "Command " "$@" " completed successfully" 14 | else 15 | echo "Command " "$@" " exited with error status $STATUS" 16 | fi 17 | -------------------------------------------------------------------------------- /packages/react-native-codegen-typescript-test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": [ 4 | "es6" 5 | ], 6 | "module": "commonjs", 7 | "moduleResolution": "node", 8 | "target": "es5", 9 | "declaration": false, 10 | "sourceMap": false, 11 | "outDir": "./lib", 12 | "noEmitOnError": true, 13 | "noUnusedLocals": true, 14 | "strictNullChecks": true, 15 | }, 16 | "exclude": [ 17 | "node_modules", 18 | "lib" 19 | ] 20 | } -------------------------------------------------------------------------------- /packages/react-native/Libraries/AppDelegate/RCTLegacyInteropComponents.mm: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTLegacyInteropComponents.h" 9 | 10 | @implementation RCTLegacyInteropComponents 11 | 12 | + (NSArray *)legacyInteropComponents 13 | { 14 | return @[]; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTBaseTextInputView.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface RCTMultilineTextInputView : RCTBaseTextInputView 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTBaseTextInputView.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface RCTSinglelineTextInputView : RCTBaseTextInputView 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfigFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.yoga; 9 | 10 | public abstract class YogaConfigFactory { 11 | public static YogaConfig create() { 12 | return new YogaConfigJNIFinalizer(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/hermes/executor/JSITracing.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "JSITracing.h" 9 | 10 | namespace facebook { 11 | namespace jsi { 12 | void addNativeTracingHooks(Runtime &rt) { 13 | // Unimplemented 14 | } 15 | } // namespace jsi 16 | } // namespace facebook 17 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/Images.xcassets/tabnav_notification.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "scale" : "3x", 14 | "filename" : "tabnav_notification@3x.png" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /scripts/versiontemplates/ReactNativeVersion.js.template: -------------------------------------------------------------------------------- 1 | /** 2 | * @generated by scripts/set-rn-version.js 3 | * 4 | * Copyright (c) Meta Platforms, Inc. and affiliates. 5 | * 6 | * This source code is licensed under the MIT license found in the 7 | * LICENSE file in the root directory of this source tree. 8 | * 9 | * @flow strict 10 | */ 11 | 12 | exports.version = { 13 | major: ${major}, 14 | minor: ${minor}, 15 | patch: ${patch}, 16 | prerelease: ${prerelease}, 17 | }; 18 | -------------------------------------------------------------------------------- /packages/react-native-codegen/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "@babel/plugin-proposal-object-rest-spread", 4 | "@babel/plugin-transform-async-to-generator", 5 | "@babel/plugin-transform-destructuring", 6 | "@babel/plugin-transform-flow-strip-types", 7 | "@babel/plugin-syntax-dynamic-import", 8 | "@babel/plugin-proposal-class-properties", 9 | "@babel/plugin-proposal-nullish-coalescing-operator", 10 | "@babel/plugin-proposal-optional-chaining" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /packages/react-native/React/Base/RCTPerformanceLoggerLabels.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import "RCTPLTag.h" 10 | 11 | // Return the string label for the enum RCTPLTag for performance logging 12 | __attribute__((used)) RCT_EXTERN NSString *RCTPLLabelForTag(RCTPLTag tag); 13 | -------------------------------------------------------------------------------- /packages/react-native/React/Base/Surface/RCTSurfaceRootView.mm: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTSurfaceRootView.h" 9 | 10 | #import "RCTDefines.h" 11 | 12 | @implementation RCTSurfaceRootView 13 | 14 | RCT_NOT_IMPLEMENTED(-(nullable instancetype)initWithCoder : (NSCoder *)coder) 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.modules.network; 9 | 10 | public interface ProgressListener { 11 | void onProgress(long bytesWritten, long contentLength, boolean done); 12 | } 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ScrollWatcher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.views.textinput; 9 | 10 | public interface ScrollWatcher { 11 | public void onScrollChanged(int horiz, int vert, int oldHoriz, int oldVert); 12 | } 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ja/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React Native開発メニュー(%1$s) 7 | %1$sの実行中 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ko/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React Native 개발자 메뉴 (%1$s) 7 | %1$s 실행 중 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-zh-rCN/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React Native 开发者菜单(%1$s) 7 | 正在运行%1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/cxxreact/tests/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include 9 | #include 10 | 11 | int main(int argc, char **argv) { 12 | ::testing::InitGoogleTest(&argc, argv); 13 | folly::init(&argc, &argv); 14 | return RUN_ALL_TESTS(); 15 | } 16 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/main.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char *argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/perftest/PerfTestConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.perftest; 9 | 10 | /** PerfTestConfig stub. */ 11 | public class PerfTestConfig { 12 | 13 | public boolean isRunningInPerfTest() { 14 | return false; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-iw/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | תפריט מקומי למפתחים (%1$s) 7 | %1$s בפעילות 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-zh-rHK/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React Native 開發人員選單(%1$s) 7 | 正在執行%1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-zh-rTW/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React Native 開發人員功能表(%1$s) 7 | 正在執行%1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/rn-tester/RNTester/RNTesterBundle/OtherImages.xcassets/ImageInAssetCatalog.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "react-logo.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /packages/rn-tester/RNTesterUnitTests/RCTPerformanceLoggerTests.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface RCTPerformanceLoggerTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation RCTPerformanceLoggerTests 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /packages/react-native/Libraries/TurboModule/TurboModuleRegistry.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | */ 9 | 10 | import {TurboModule} from './RCTExport'; 11 | 12 | export function get(name: string): T | null; 13 | export function getEnforcing(name: string): T; 14 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTSwitch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import 11 | 12 | @interface RCTSwitch : UISwitch 13 | 14 | @property (nonatomic, assign) BOOL wasOn; 15 | @property (nonatomic, copy) RCTBubblingEventBlock onChange; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTSwitch.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "RCTSwitch.h" 9 | 10 | #import "UIView+React.h" 11 | 12 | @implementation RCTSwitch 13 | 14 | - (void)setOn:(BOOL)on animated:(BOOL)animated 15 | { 16 | _wasOn = on; 17 | [super setOn:on animated:animated]; 18 | } 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTViewUtils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | RCT_EXTERN_C_BEGIN 14 | 15 | UIEdgeInsets RCTContentInsets(UIView *view); 16 | 17 | RCT_EXTERN_C_END 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react; 9 | 10 | public interface ReactApplication { 11 | 12 | /** Get the default {@link ReactNativeHost} for this app. */ 13 | ReactNativeHost getReactNativeHost(); 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/PackagerStatusCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | package com.facebook.react.devsupport.interfaces; 9 | 10 | public interface PackagerStatusCallback { 11 | void onPackagerStatusFetched(boolean packagerIsRunning); 12 | } 13 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/first-party/fbgloginit/fb/glog_init.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #pragma once 9 | 10 | #include 11 | 12 | namespace facebook { 13 | namespace gloginit { 14 | 15 | void initialize(const char *tag = "ReactNativeJNI"); 16 | 17 | } 18 | } // namespace facebook 19 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-bn/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | রিয়েকশন নেটিভ ডেভেলপার মেনু (%1$s) 7 | %1$s চলছে 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-cs/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Nabídka React Native Dev (%1$s) 7 | Spuštěno: %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-hu/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React Native-fejlesztői menü – (%1$s) 7 | Futó %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-jv/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Menu React Native Dev (%1$s) 7 | Lagi tayang %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-nb/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React Native-utviklermenyen (%1$s) 7 | Kjører %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/jsc/JSCRuntime.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #pragma once 9 | 10 | #include 11 | #include 12 | 13 | namespace facebook { 14 | namespace jsc { 15 | 16 | std::unique_ptr makeJSCRuntime(); 17 | 18 | } // namespace jsc 19 | } // namespace facebook 20 | -------------------------------------------------------------------------------- /packages/react-native/ReactCommon/react/renderer/components/safeareaview/SafeAreaViewShadowNode.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include "SafeAreaViewShadowNode.h" 9 | 10 | namespace facebook::react { 11 | 12 | extern const char SafeAreaViewComponentName[] = "SafeAreaView"; 13 | 14 | } // namespace facebook::react 15 | -------------------------------------------------------------------------------- /packages/eslint-plugin-specs/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | * @oncall react_native 9 | */ 10 | 11 | 'use strict'; 12 | 13 | const reactNativeModules = require('./react-native-modules'); 14 | 15 | module.exports = { 16 | rules: { 17 | 'react-native-modules': reactNativeModules, 18 | }, 19 | }; 20 | -------------------------------------------------------------------------------- /packages/react-native-codegen/src/cli/parser/parser-cli.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow strict-local 8 | * @format 9 | * @oncall react_native 10 | */ 11 | 12 | 'use strict'; 13 | 14 | const parseFiles = require('./parser.js'); 15 | 16 | const [...fileList] = process.argv.slice(2); 17 | 18 | parseFiles(fileList); 19 | -------------------------------------------------------------------------------- /packages/react-native/React/Views/RCTPointerEvents.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | typedef NS_ENUM(NSInteger, RCTPointerEvents) { 11 | RCTPointerEventsUnspecified = 0, // Default 12 | RCTPointerEventsNone, 13 | RCTPointerEventsBoxNone, 14 | RCTPointerEventsBoxOnly, 15 | }; 16 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/react/reactperflogger/reactperflogger/OnLoad.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #include 9 | 10 | #include "JNativeModulePerfLogger.h" 11 | 12 | JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) { 13 | return facebook::jni::initialize(vm, [] {}); 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/jni/third-party/fmt/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. 2 | # 3 | # This source code is licensed under the MIT license found in the 4 | # LICENSE file in the root directory of this source tree. 5 | 6 | cmake_minimum_required(VERSION 3.13) 7 | set(CMAKE_VERBOSE_MAKEFILE on) 8 | 9 | add_compile_options(-std=c++11 -fexceptions) 10 | 11 | add_library(fmt STATIC src/format.cc) 12 | 13 | target_include_directories(fmt PUBLIC include) 14 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/layout/redbox_item_title.xml: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ar/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | التفاعل مع قائمة التطوير الأصلي (%1$s) 7 | تشغيل %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-et/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React Native’i arendaja menüü (%1$s) 7 | Töötab %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-gu/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | મૂળ ડેવ મેનૂ (%1$s) પર પ્રતિક્રિયા આપો 7 | %1$s ચાલુ છે 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ha/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Mazaɓar Martanin Native Dev (%1$s) 7 | Gudanar da %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-hi/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | रिएक्शन नेटिव डेवलपर मेनू (%1$s) 7 | %1$s चला रहे हैं 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-hr/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React native dev izbornik (%1$s) 7 | Pokretanje %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-in/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Menanggapi Menu Dev Asli (%1$s) 7 | Menjalankan %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-km/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ប្រតិកម្ម​ម៉ឺនុយ​​អភិវឌ្ឍដើម (%1$s) 7 | ដំណើរការ %1$s 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native/ReactAndroid/src/main/res/devsupport/values-ml/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | പ്രതികരണ നേറ്റീവ് ഡെവ മെനു (%1$s) 7 | റൺ ചെയ്യുന്നു %1$s 8 | 9 | --------------------------------------------------------------------------------