├── RNTester
├── .gitignore
├── js
│ ├── bunny.png
│ ├── hawk.png
│ ├── slider.png
│ ├── flux@3x.png
│ ├── relay@3x.png
│ ├── imageMask.png
│ ├── slider-left.png
│ ├── slider@2x.png
│ ├── slider-right.png
│ ├── uie_thumb_big.png
│ ├── Thumbnails
│ │ ├── call.png
│ │ ├── fist.png
│ │ ├── heart.png
│ │ ├── like.png
│ │ ├── party.png
│ │ ├── poke.png
│ │ ├── dislike.png
│ │ ├── flowers.png
│ │ ├── liking.png
│ │ ├── victory.png
│ │ ├── bandaged.png
│ │ └── superlike.png
│ ├── slider-left@2x.png
│ ├── slider-right@2x.png
│ ├── uie_comment_normal@2x.png
│ ├── uie_thumb_normal@2x.png
│ ├── uie_thumb_selected@2x.png
│ ├── uie_comment_highlighted@2x.png
│ ├── AnimatedGratuitousApp
│ │ └── trees.jpg
│ ├── tumblr_mfqekpMktw1rn90umo1_500.gif
│ ├── SnapshotViewIOS.android.js
│ ├── ToolbarAndroidExample.ios.js
│ ├── helloworld.html
│ ├── TurboModuleExample.js
│ ├── http_test_server.js
│ ├── createExamplePage.js
│ ├── SetPropertiesExampleApp.js
│ ├── messagingtest.html
│ ├── RNTesterTitle.js
│ ├── Shared
│ │ └── RNTesterTypes.js
│ ├── CrashExample.js
│ ├── RNTesterActions.js
│ ├── RNTesterButton.js
│ ├── websocket_test_server.js
│ ├── TransparentHitTestExample.js
│ ├── URIActionMap.js
│ ├── DimensionsExample.js
│ ├── RNTesterNavigationReducer.js
│ └── XHRExampleAbortController.js
├── qml
│ ├── run-example.sh.in
│ └── RNTester.qml
└── CMakeLists.txt
├── docs
├── RunRNTester.md
├── media
│ ├── devtools-window.png
│ ├── qtcreator-add-example.png
│ ├── devtools-inspect-target.png
│ ├── qt-creator-cmake-settings.png
│ ├── react-native-desktop-new-app.png
│ ├── qtcreator-pref-beautifier-general.png
│ └── qtcreator-pref-beautifier-clangformat.png
├── AppsUsingRnd.md
├── SupportedNativeModulesList.md
├── InspectJs.md
├── InstallUpdatedReactNativeCLI.md
├── InspectAppWithGammaRay.md
└── CreateNewApp.md
├── ReactQt
├── runtime
│ ├── src
│ │ ├── qmldir
│ │ ├── images
│ │ │ └── spinner_medium.png
│ │ ├── qml
│ │ │ ├── ReactRawText.qml
│ │ │ ├── ReactView.qml
│ │ │ ├── ReactQtWebKitWebView.qml
│ │ │ ├── ReactButton.qml
│ │ │ ├── ReactPicker.qml
│ │ │ ├── ReactSlider.qml
│ │ │ ├── ReactActivityIndicator.qml
│ │ │ ├── ReactModal.qml
│ │ │ ├── ReactNavigator.qml
│ │ │ └── ReactWebView.qml
│ │ ├── js
│ │ │ └── utils.js
│ │ ├── jscutilities.h
│ │ ├── reactplugin.h
│ │ ├── moduleloader.h
│ │ ├── valuecoercion.h
│ │ ├── componentmanagers
│ │ │ ├── scrollviewmodel.h
│ │ │ ├── scrollviewmodel.cpp
│ │ │ ├── activityindicatormanager.h
│ │ │ ├── rawtextmanager.h
│ │ │ ├── rawtextmanager.cpp
│ │ │ ├── buttonmanager.h
│ │ │ ├── imagemanager.h
│ │ │ ├── pickermanager.h
│ │ │ ├── activityindicatormanager.cpp
│ │ │ ├── slidermanager.h
│ │ │ ├── switchmanager.h
│ │ │ ├── modalmanager.h
│ │ │ └── imageloader.h
│ │ ├── jscutilities.cpp
│ │ ├── reactplugin.cpp
│ │ ├── testmodule.cpp
│ │ ├── platform.h
│ │ ├── redbox.h
│ │ ├── eventdispatcher.h
│ │ ├── blobprovider.cpp
│ │ ├── testmodule.h
│ │ ├── deviceinfo.h
│ │ ├── moduledata.h
│ │ ├── alert.h
│ │ ├── react_resources.qrc
│ │ ├── blobprovider.h
│ │ ├── modulemethod.h
│ │ ├── reactnetworkaccessmanager.h
│ │ ├── eventdispatcher.cpp
│ │ ├── clipboard.h
│ │ ├── componentdata.h
│ │ ├── reactnetworkaccessmanager.cpp
│ │ ├── netinfo.h
│ │ ├── appstate.h
│ │ ├── mouseeventsinterceptor.h
│ │ ├── timing.h
│ │ ├── clipboard.cpp
│ │ ├── appstate.cpp
│ │ └── communication
│ │ │ ├── nodejsexecutor.h
│ │ │ └── websocketexecutor.h
│ └── CMakeLists.txt
├── tests
│ ├── test-button-props
│ │ ├── resources.qrc
│ │ ├── CMakeLists.txt
│ │ ├── TestButtonProps.qml
│ │ ├── TestButtonProps.js
│ │ └── test-button-props.cpp
│ ├── test-button-size
│ │ ├── resources.qrc
│ │ ├── CMakeLists.txt
│ │ ├── TestButtonSize.qml
│ │ └── TestButtonSize.js
│ ├── test-image-props
│ │ ├── resources.qrc
│ │ ├── CMakeLists.txt
│ │ └── TestImageProps.qml
│ ├── test-modal-props
│ │ ├── resources.qrc
│ │ ├── CMakeLists.txt
│ │ ├── TestModalProps.qml
│ │ ├── TestModalProps.js
│ │ └── test-modal-props.cpp
│ ├── test-picker-props
│ │ ├── resources.qrc
│ │ ├── CMakeLists.txt
│ │ ├── TestPickerProps.qml
│ │ └── TestPickerProps.js
│ ├── test-slider-props
│ │ ├── resources.qrc
│ │ ├── CMakeLists.txt
│ │ ├── TestSliderProps.qml
│ │ └── TestSliderProps.js
│ ├── test-textinput-clear
│ │ ├── resources.qrc
│ │ ├── CMakeLists.txt
│ │ ├── TestTextInputClear.js
│ │ └── TestTextInputClear.qml
│ ├── test-textinput-props
│ │ ├── resources.qrc
│ │ ├── CMakeLists.txt
│ │ ├── TestTextInputProps.qml
│ │ └── TestTextInputProps.js
│ ├── test-array-reconciliation
│ │ ├── resources.qrc
│ │ ├── CMakeLists.txt
│ │ ├── TestArrayReconciliation.qml
│ │ ├── TestArrayReconciliationDeleteLast.js
│ │ ├── TestArrayReconciliationInsertFirst.js
│ │ └── TestArrayReconciliationItemMove.js
│ ├── test-activityindicator-props
│ │ ├── resources.qrc
│ │ ├── TestActivityIndicatorProps.js
│ │ ├── CMakeLists.txt
│ │ └── TestActivityIndicatorProps.qml
│ ├── resources.qrc
│ ├── common
│ │ ├── reactpropertytestcase.h
│ │ └── reactpropertytestcase.cpp
│ ├── test-netexecutor-socket
│ │ └── CMakeLists.txt
│ └── test-integration
│ │ └── TestModuleTest.qml
├── application
│ ├── CMakeLists.txt
│ └── src
│ │ ├── main.qrc.in
│ │ └── main.qml.in
└── CMakeLists.txt
├── .circleci
└── README.md
├── local-cli
├── index.js
├── generator-desktop
│ └── templates
│ │ ├── babel.config.js
│ │ ├── run-app.bat.in
│ │ ├── build.sh
│ │ └── build.bat
├── runDesktop
│ └── checkDesktop.js
├── generate-desktop.js
└── util
│ └── isPackagerRunning.js
├── Libraries
├── Components
│ ├── StatusBar
│ │ ├── StatusBar.desktop-qt.js
│ │ └── StatusBarIOS.desktop-qt.js
│ ├── Picker
│ │ ├── PickerIOS.desktop-qt.js
│ │ └── PickerAndroid.desktop-qt.js
│ ├── Navigation
│ │ └── NavigatorIOS.desktop-qt.js
│ ├── DrawerAndroid
│ │ └── DrawerLayoutAndroid.desktop-qt.js
│ ├── CheckBox
│ │ └── CheckBox.desktop-qt.js
│ ├── AccessibilityInfo
│ │ └── AccessibilityInfo.desktop-qt.js
│ ├── SafeAreaView
│ │ └── SafeAreaView.desktop-qt.js
│ ├── View
│ │ └── PlatformViewPropTypes.desktop-qt.js
│ ├── ToolbarAndroid
│ │ └── ToolbarAndroid.desktop-qt.js
│ ├── ViewPager
│ │ └── ViewPagerAndroid.desktop-qt.js
│ ├── MaskedView
│ │ └── MaskedViewIOS.desktop-qt.js
│ ├── ProgressBarAndroid
│ │ └── ProgressBarAndroid.desktop-qt.js
│ ├── AppleTV
│ │ └── TVEventHandler.desktop-qt.js
│ ├── DatePickerAndroid
│ │ └── DatePickerAndroid.desktop-qt.js
│ ├── TimePickerAndroid
│ │ └── TimePickerAndroid.desktop-qt.js
│ ├── ToastAndroid
│ │ └── ToastAndroid.desktop-qt.js
│ ├── Touchable
│ │ └── TouchableNativeFeedback.desktop-qt.js
│ ├── TabBarIOS
│ │ ├── TabBarIOS.desktop-qt.js
│ │ └── TabBarItemIOS.desktop-qt.js
│ ├── DatePicker
│ │ └── DatePickerIOS.desktop-qt.js
│ ├── SegmentedControlIOS
│ │ └── SegmentedControlIOS.desktop-qt.js
│ ├── ProgressViewIOS
│ │ └── ProgressViewIOS.desktop-qt.js
│ └── NativeButton.desktop-qt.js
├── react-native-desktop-qt
│ └── react-native-desktop-qt-implementation.js
├── RCTTest
│ └── SnapshotViewIOS.desktop-qt.js
├── Utilities
│ ├── HMRLoadingView.desktop-qt.js
│ ├── BackAndroid.desktop-qt.js
│ ├── BackHandler.desktop-qt.js
│ └── Platform.desktop-qt.js
├── Vibration
│ └── VibrationIOS.desktop-qt.js
├── Settings
│ └── Settings.desktop-qt.js
└── Linking
│ └── NativeLinking.desktop-qt.js
├── .github
├── ISSUE_TEMPLATE
│ ├── documentation.md
│ ├── question.md
│ ├── discussion.md
│ ├── feature_request.md
│ └── bug_report.md
├── ISSUE_TEMPLATE.md
├── CODEOWNERS
└── stale.yml
├── Examples
├── run-example.sh.in
├── ActivityIndicator
│ ├── qml
│ │ ├── run-example.sh.in
│ │ └── ActivityIndicator.qml
│ ├── CMakeLists.txt
│ └── ActivityIndicatorApp.js
├── Alerts
│ └── CMakeLists.txt
├── Button
│ ├── CMakeLists.txt
│ └── ButtonApp.js
├── Fetch
│ ├── CMakeLists.txt
│ └── FetchApp.js
├── Image
│ └── CMakeLists.txt
├── Modal
│ └── CMakeLists.txt
├── FlatList
│ └── CMakeLists.txt
├── ScrollView
│ └── CMakeLists.txt
├── TicTacToe
│ └── CMakeLists.txt
├── Transform
│ └── CMakeLists.txt
├── TouchableEvents
│ └── CMakeLists.txt
├── CMakeLists.txt
└── Example.qml.in
├── babel.config.js
├── .gitattributes
├── ReactCommon
└── yoga
│ ├── Android.mk
│ ├── BUCK
│ └── yoga
│ ├── YGNodePrint.h
│ ├── YGConfig.h
│ ├── YGConfig.cpp
│ ├── YGMacros.h
│ ├── YGLayout.h
│ ├── YGStyle.h
│ └── YGFloatOptional.h
├── react-native.config.js
├── metro.config.js
├── fix-code-formatting.sh
├── .dependabot
└── config.yml
├── package.json
├── CMakeLists.txt
└── .gitignore
/RNTester/.gitignore:
--------------------------------------------------------------------------------
1 | Pods/
2 |
--------------------------------------------------------------------------------
/docs/RunRNTester.md:
--------------------------------------------------------------------------------
1 | ## TBD
2 |
--------------------------------------------------------------------------------
/ReactQt/runtime/src/qmldir:
--------------------------------------------------------------------------------
1 | module React
2 | plugin react-native
3 |
4 |
--------------------------------------------------------------------------------
/.circleci/README.md:
--------------------------------------------------------------------------------
1 | # Circle CI
2 |
3 | This directory is home to the Circle CI configuration file.
4 |
--------------------------------------------------------------------------------
/RNTester/js/bunny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/bunny.png
--------------------------------------------------------------------------------
/RNTester/js/hawk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/hawk.png
--------------------------------------------------------------------------------
/RNTester/js/slider.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/slider.png
--------------------------------------------------------------------------------
/local-cli/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = [
4 | require('./runDesktop/runDesktop')
5 | ];
6 |
--------------------------------------------------------------------------------
/RNTester/js/flux@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/flux@3x.png
--------------------------------------------------------------------------------
/RNTester/js/relay@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/relay@3x.png
--------------------------------------------------------------------------------
/RNTester/js/imageMask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/imageMask.png
--------------------------------------------------------------------------------
/RNTester/js/slider-left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/slider-left.png
--------------------------------------------------------------------------------
/RNTester/js/slider@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/slider@2x.png
--------------------------------------------------------------------------------
/Libraries/Components/StatusBar/StatusBar.desktop-qt.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = require('UnimplementedView');
4 |
--------------------------------------------------------------------------------
/RNTester/js/slider-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/slider-right.png
--------------------------------------------------------------------------------
/RNTester/js/uie_thumb_big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/uie_thumb_big.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/call.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/call.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/fist.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/fist.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/heart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/heart.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/like.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/like.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/party.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/party.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/poke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/poke.png
--------------------------------------------------------------------------------
/RNTester/js/slider-left@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/slider-left@2x.png
--------------------------------------------------------------------------------
/RNTester/js/slider-right@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/slider-right@2x.png
--------------------------------------------------------------------------------
/docs/media/devtools-window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/docs/media/devtools-window.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/dislike.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/dislike.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/flowers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/flowers.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/liking.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/liking.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/victory.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/victory.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/bandaged.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/bandaged.png
--------------------------------------------------------------------------------
/RNTester/js/Thumbnails/superlike.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/Thumbnails/superlike.png
--------------------------------------------------------------------------------
/RNTester/js/uie_comment_normal@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/uie_comment_normal@2x.png
--------------------------------------------------------------------------------
/RNTester/js/uie_thumb_normal@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/uie_thumb_normal@2x.png
--------------------------------------------------------------------------------
/RNTester/js/uie_thumb_selected@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/uie_thumb_selected@2x.png
--------------------------------------------------------------------------------
/docs/media/qtcreator-add-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/docs/media/qtcreator-add-example.png
--------------------------------------------------------------------------------
/docs/media/devtools-inspect-target.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/docs/media/devtools-inspect-target.png
--------------------------------------------------------------------------------
/RNTester/js/uie_comment_highlighted@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/uie_comment_highlighted@2x.png
--------------------------------------------------------------------------------
/docs/media/qt-creator-cmake-settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/docs/media/qt-creator-cmake-settings.png
--------------------------------------------------------------------------------
/RNTester/js/AnimatedGratuitousApp/trees.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/AnimatedGratuitousApp/trees.jpg
--------------------------------------------------------------------------------
/docs/media/react-native-desktop-new-app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/docs/media/react-native-desktop-new-app.png
--------------------------------------------------------------------------------
/RNTester/js/tumblr_mfqekpMktw1rn90umo1_500.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/RNTester/js/tumblr_mfqekpMktw1rn90umo1_500.gif
--------------------------------------------------------------------------------
/ReactQt/runtime/src/images/spinner_medium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/ReactQt/runtime/src/images/spinner_medium.png
--------------------------------------------------------------------------------
/ReactQt/tests/test-button-props/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestButtonProps.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-button-size/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestButtonSize.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-image-props/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestImageProps.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-modal-props/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestModalProps.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-picker-props/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestPickerProps.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-slider-props/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestSliderProps.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/docs/media/qtcreator-pref-beautifier-general.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/docs/media/qtcreator-pref-beautifier-general.png
--------------------------------------------------------------------------------
/ReactQt/tests/test-textinput-clear/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestTextInputClear.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-textinput-props/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestTextInputProps.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/docs/media/qtcreator-pref-beautifier-clangformat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/status-im/react-native-desktop-qt/HEAD/docs/media/qtcreator-pref-beautifier-clangformat.png
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/documentation.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 📖 Documentation Issue
3 | about: Report issues with the `react-native-desktop` docs
4 |
5 | ---
6 |
7 | ## Description
8 |
--------------------------------------------------------------------------------
/Libraries/Components/Picker/PickerIOS.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @providesModule PickerIOS
3 | */
4 | 'use strict';
5 |
6 | module.exports = require('UnimplementedView');
7 |
8 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-array-reconciliation/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestArrayReconciliation.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Libraries/Components/Picker/PickerAndroid.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @providesModule PickerAndroid
3 | */
4 | 'use strict';
5 |
6 | module.exports = require('UnimplementedView');
7 |
8 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-activityindicator-props/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestActivityIndicatorProps.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Libraries/Components/Navigation/NavigatorIOS.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @providesModule NavigatorIOS
3 | */
4 | 'use strict';
5 |
6 | module.exports = require('UnimplementedView');
7 |
8 |
--------------------------------------------------------------------------------
/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @providesModule DrawerLayoutAndroid
3 | */
4 | 'use strict';
5 |
6 | module.exports = require('UnimplementedView');
7 |
--------------------------------------------------------------------------------
/Examples/run-example.sh.in:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | (node ${CMAKE_SOURCE_DIR}/js-executor.js) &
4 | qmlscene -I ${CMAKE_BINARY_DIR}/ReactQt/runtime/src/ ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
5 |
6 |
--------------------------------------------------------------------------------
/RNTester/qml/run-example.sh.in:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | (node ${CMAKE_SOURCE_DIR}/js-executor.js) &
4 | qmlscene -I ${CMAKE_BINARY_DIR}/ReactQt/runtime/src/ ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
5 |
6 |
--------------------------------------------------------------------------------
/Examples/ActivityIndicator/qml/run-example.sh.in:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | (node ${CMAKE_SOURCE_DIR}/js-executor.js) &
4 | qmlscene -I ${CMAKE_BINARY_DIR}/ReactQt/runtime/src/ ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
5 |
6 |
--------------------------------------------------------------------------------
/ReactQt/runtime/src/qml/ReactRawText.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.4
2 |
3 | Text {
4 | id: rawTextRoot
5 |
6 | visible: false
7 | property string typeName: "ReactRawText"
8 | property string p_text
9 | }
10 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/question.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 💬 Question
3 | about: If you need help with your `react-native-desktop` app, the right place to go depends on the type of help that you need.
4 |
5 | ---
6 |
7 | ## Question
8 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/discussion.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 🗣 Start a Discussion
3 | about: Propose changes or discuss feature requests for `react-native-desktop`.
4 | ---
5 |
6 | # For Discussion
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Libraries/react-native-desktop-qt/react-native-desktop-qt-implementation.js:
--------------------------------------------------------------------------------
1 |
2 | 'use strict';
3 |
4 | var ReactDesktop = {
5 | // Components
6 | get NativeButton() { return require('NativeButton'); },
7 | };
8 |
9 | module.exports = ReactDesktop;
10 |
--------------------------------------------------------------------------------
/Examples/Alerts/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME Alerts)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/Examples/Button/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME Button)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/Examples/Fetch/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME Fetch)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/Examples/Image/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME Image)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/Examples/Modal/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME Modal)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/ReactQt/runtime/src/js/utils.js:
--------------------------------------------------------------------------------
1 | function alignmentQMLValue(jsValue) {
2 | if (jsValue === "center") {
3 | return "AlignHCenter";
4 | } else if (jsValue === "left"){
5 | return "AlignLeft";
6 | } else {
7 | return "AlignRight";
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Examples/FlatList/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME FlatList)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/Examples/ScrollView/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME ScrollView)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/Examples/TicTacToe/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME TicTacToe)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/Examples/Transform/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME Transform)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | var path = require("path");
2 | const defaultResolvePath = require('babel-plugin-module-resolver').resolvePath;
3 | const generator = require("./babel/babel-config-generator.js");
4 |
5 | module.exports = generator.create(path.resolve("./node_modules/react-native"), path.resolve("."));
6 |
--------------------------------------------------------------------------------
/Examples/TouchableEvents/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME TouchableEvents)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/Examples/ActivityIndicator/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME ActivityIndicator)
3 |
4 | configure_file(
5 | ../run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | configure_file(
10 | ../Example.qml.in
11 | ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_NAME}.qml
12 | )
13 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Force LF line endings for Bash scripts. On Windows the rest of the source
2 | # files will typically have CR+LF endings (Git default on Windows), but Bash
3 | # scripts need to have LF endings to work (under Cygwin), thus override to force
4 | # that.
5 | gradlew text eol=lf
6 | *.sh text eol=lf
7 | *.patch eol=lf
8 |
--------------------------------------------------------------------------------
/RNTester/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | set(EXAMPLE_NAME RNTester)
3 |
4 | configure_file(
5 | qml/run-example.sh.in
6 | ${CMAKE_CURRENT_BINARY_DIR}/run-example.sh
7 | )
8 |
9 | add_custom_target(
10 | copy-${EXAMPLE_NAME} ALL
11 | COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/qml/${EXAMPLE_NAME}.qml ${CMAKE_CURRENT_BINARY_DIR}
12 | )
13 |
--------------------------------------------------------------------------------
/ReactQt/application/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (C) 2016, Canonical Ltd.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | add_subdirectory(src)
--------------------------------------------------------------------------------
/Examples/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory(TicTacToe)
2 | add_subdirectory(Image)
3 | add_subdirectory(ScrollView)
4 | add_subdirectory(ActivityIndicator)
5 | add_subdirectory(Button)
6 | add_subdirectory(Modal)
7 | add_subdirectory(TouchableEvents)
8 | add_subdirectory(Alerts)
9 | add_subdirectory(Transform)
10 | add_subdirectory(FlatList)
11 | add_subdirectory(Fetch)
12 |
--------------------------------------------------------------------------------
/Libraries/Components/CheckBox/CheckBox.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2017-present, Facebook, Inc.
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 | 'use strict';
11 |
12 | module.exports = require('UnimplementedView');
13 |
--------------------------------------------------------------------------------
/ReactCommon/yoga/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_MODULE := yogacore
6 |
7 | LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/yoga/*.cpp)
8 |
9 | LOCAL_C_INCLUDES := $(LOCAL_PATH)
10 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
11 |
12 | LOCAL_CFLAGS := -fexceptions -frtti -O3
13 |
14 | include $(BUILD_STATIC_LIBRARY)
15 |
--------------------------------------------------------------------------------
/ReactQt/runtime/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (C) 2016, Canonical Ltd.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | add_subdirectory(src)
10 |
11 |
--------------------------------------------------------------------------------
/react-native.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | commands: [
3 | require('./local-cli/runDesktop/runDesktop'),
4 | ],
5 | platforms: {
6 | "desktop-qt": {
7 | linkConfig: () => null,
8 | projectConfig: (projectRoot, projectParams) => null,
9 | dependencyConfig: (projectRoot, dependencyParams) => null,
10 | },
11 | },
12 | };
13 |
--------------------------------------------------------------------------------
/RNTester/js/SnapshotViewIOS.android.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its 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('../../Libraries/Components/UnimplementedViews/UnimplementedView');
13 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | GitHub Issues in the `status-im/react-native-desktop` repository are used exclusively for tracking bugs in React Native desktop.
2 |
3 | Please take a look at the issue templates at https://github.com/status-im/react-native-desktop/issues/new/choose before submitting a new issue. Following one of the issue templates will ensure maintainers can route your request efficiently. Thanks!
4 |
--------------------------------------------------------------------------------
/local-cli/generator-desktop/templates/babel.config.js:
--------------------------------------------------------------------------------
1 | var path = require("path");
2 | const defaultResolvePath = require('babel-plugin-module-resolver').resolvePath;
3 | const generator = require("./node_modules/react-native-desktop-qt/babel/babel-config-generator.js");
4 |
5 | module.exports = generator.create(path.resolve("./node_modules/react-native"), path.resolve("./node_modules/react-native-desktop-qt"));
6 |
--------------------------------------------------------------------------------
/metro.config.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | var path = require("path");
4 | const blacklist = require("metro-config/src/defaults/blacklist");
5 | const defaultPolyfills = require("react-native/rn-get-polyfills");
6 |
7 | var config = {
8 | resolver: {
9 | hasteImplModulePath: require.resolve('./jest/hasteImpl'),
10 | platforms: ["desktop-qt"],
11 | },
12 | };
13 |
14 | module.exports = config;
15 |
--------------------------------------------------------------------------------
/Examples/Example.qml.in:
--------------------------------------------------------------------------------
1 |
2 | import QtQuick 2.7
3 | import React 0.1 as React
4 |
5 | Rectangle {
6 | id: root
7 | width: 640; height: 800;
8 |
9 | React.RootView {
10 | anchors.fill: parent
11 |
12 | moduleName: "${EXAMPLE_NAME}App"
13 | codeLocation: "http://localhost:8081/Examples/${EXAMPLE_NAME}/${EXAMPLE_NAME}App.bundle?platform=desktop-qt&dev=true"
14 | externalModules: []
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Examples/ActivityIndicator/qml/ActivityIndicator.qml:
--------------------------------------------------------------------------------
1 |
2 | import QtQuick 2.4
3 | import React 0.1 as React
4 |
5 | Rectangle {
6 | id: root
7 | width: 640; height: 480;
8 |
9 | React.RootView {
10 | anchors.fill: parent
11 |
12 | moduleName: "ActivityIndicatorApp"
13 | codeLocation: "http://localhost:8081/Examples/ActivityIndicator/ActivityIndicatorApp.bundle?platform=desktop&dev=true"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/RNTester/js/ToolbarAndroidExample.ios.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its 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 | const {View} = require('react-native');
14 |
15 | // Not applicable to iOS.
16 | module.exports = View;
17 |
--------------------------------------------------------------------------------
/fix-code-formatting.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | SOURCE_FILES=`find ./ReactQt/ -name \*.cpp -type f -or -name \*.h -type f`
4 | for SOURCE_FILE in $SOURCE_FILES
5 | do
6 | export FORMATTING_ISSUE_COUNT=`clang-format -output-replacements-xml $SOURCE_FILE | grep offset | wc -l`
7 | if [ "$FORMATTING_ISSUE_COUNT" -gt "0" ]; then
8 | clang-format -i $SOURCE_FILE
9 | echo "Formatting issues fixed for: $SOURCE_FILE"
10 | fi
11 | done
12 |
--------------------------------------------------------------------------------
/Libraries/Components/AccessibilityInfo/AccessibilityInfo.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
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 | * @flow
10 | */
11 |
12 | 'use strict';
13 |
14 | const AccessibilityInfo = {
15 | };
16 |
17 | module.exports = AccessibilityInfo;
18 |
--------------------------------------------------------------------------------
/.dependabot/config.yml:
--------------------------------------------------------------------------------
1 | # https://dependabot.com/docs/config-file/
2 |
3 | version: 1
4 | update_configs:
5 | - package_manager: "java:gradle"
6 | directory: "/"
7 | update_schedule: "weekly"
8 | default_reviewers:
9 | - "vkjr"
10 | allowed_updates:
11 | - match:
12 | update_type: "security"
13 | - package_manager: "javascript"
14 | directory: "/"
15 | update_schedule: "weekly"
16 | default_reviewers:
17 | - "vkjr"
18 |
--------------------------------------------------------------------------------
/docs/AppsUsingRnd.md:
--------------------------------------------------------------------------------
1 | :warning::warning::warning:
2 | #### React Native Desktop project support stopped..
3 |
4 | ---
5 | ## Apps using react-native-Desktop
6 |
7 | If you want your app to be listed here, please make changes in this document and create PR.
8 |
9 | ### Status
10 | A free (libre) open source, mobile OS for Ethereum
11 |
12 | **site:** https://status.im
13 |
14 | **github:** https://github.com/status-im/status-react
15 |
16 | **download:** https://status.im/nightly
17 |
--------------------------------------------------------------------------------
/local-cli/generator-desktop/templates/run-app.bat.in:
--------------------------------------------------------------------------------
1 | @rem Copyright (c) 2017-present, Status Research and Development GmbH.
2 | @rem All rights reserved.
3 | @rem
4 | @rem This source code is licensed under the BSD-style license found in the
5 | @rem LICENSE file in the root directory of this source tree. An additional grant
6 | @rem of patent rights can be found in the PATENTS file in the same directory.
7 |
8 |
9 | @rem Run app locally
10 | @CMAKE_BINARY_DIR@/bin/@APP_NAME@
11 |
12 |
--------------------------------------------------------------------------------
/Libraries/Components/StatusBar/StatusBarIOS.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule StatusBarIOS
10 | * @flow
11 | */
12 | 'use strict';
13 |
14 | module.exports = null;
15 |
--------------------------------------------------------------------------------
/Libraries/RCTTest/SnapshotViewIOS.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule SnapshotViewIOS
10 | */
11 | 'use strict';
12 |
13 | module.exports = require('UnimplementedView');
14 |
--------------------------------------------------------------------------------
/Libraries/Components/SafeAreaView/SafeAreaView.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule SafeAreaView
10 | * @flow
11 | */
12 | 'use strict';
13 |
14 | module.exports = require('View');
15 |
--------------------------------------------------------------------------------
/Libraries/Components/View/PlatformViewPropTypes.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2017-present, Status Research and Development GmbH.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule PlatformViewPropTypes
10 | * @flow
11 | */
12 |
13 | module.export = {};
14 |
--------------------------------------------------------------------------------
/ReactQt/tests/resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestModuleTest.qml
4 | TestButtonProps.qml
5 | TestSliderProps.qml
6 | TestButtonSize.qml
7 | TestModalProps.qml
8 | TestTextInputProps.qml
9 | TestPickerProps.qml
10 | TestTextInputClear.qml
11 | TestArrayReconciliation.qml
12 |
13 |
14 |
--------------------------------------------------------------------------------
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | Libraries/Animated/* @janicduplessis
2 | Libraries/NativeAnimation/* @janicduplessis
3 | Libraries/Image/* @shergin
4 | Libraries/Text/* @shergin
5 | React/Base/* @shergin
6 | React/Views/* @shergin
7 | React/Modules/* @shergin
8 | React/CxxBridge/* @mhorowitz
9 | ReactAndroid/src/main/java/com/facebook/react/animated/* @janicduplessis
10 | **/*.md @hramos
11 | package.json @hramos
12 | local-cli/core/* @grabbou @kureev
13 | local-cli/link/* @grabbou @kureev
14 | local-cli/unlink/* @grabbou @kureev
15 |
--------------------------------------------------------------------------------
/Libraries/Components/ToolbarAndroid/ToolbarAndroid.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule ToolbarAndroid
10 | */
11 | 'use strict';
12 |
13 | module.exports = require('UnimplementedView');
14 |
--------------------------------------------------------------------------------
/Libraries/Components/ViewPager/ViewPagerAndroid.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule ViewPagerAndroid
10 | */
11 | 'use strict';
12 |
13 | module.exports = require('UnimplementedView');
14 |
--------------------------------------------------------------------------------
/Libraries/Components/MaskedView/MaskedViewIOS.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule MaskedViewIOS
10 | * @flow
11 | */
12 | 'use strict';
13 |
14 | module.exports = require('UnimplementedView');
15 |
--------------------------------------------------------------------------------
/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule ProgressBarAndroid
10 | */
11 | 'use strict';
12 |
13 | module.exports = require('UnimplementedView');
14 |
--------------------------------------------------------------------------------
/ReactCommon/yoga/BUCK:
--------------------------------------------------------------------------------
1 | load("//tools/build_defs/oss:rn_defs.bzl", "cxx_library")
2 |
3 | cxx_library(
4 | name = "yoga",
5 | srcs = glob(["yoga/*.cpp"]),
6 | header_namespace = "",
7 | exported_headers = glob(["yoga/*.h"]),
8 | compiler_flags = [
9 | "-fno-omit-frame-pointer",
10 | "-fexceptions",
11 | "-Wall",
12 | "-Werror",
13 | "-std=c++1y",
14 | "-O3",
15 | ],
16 | force_static = True,
17 | visibility = ["PUBLIC"],
18 | deps = [
19 | ],
20 | )
21 |
--------------------------------------------------------------------------------
/ReactQt/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (C) 2016, Canonical Ltd.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | include_directories(runtime/src)
10 | set (APP_NAME "ReactNativeApp")
11 | set (JS_APP_NAME "ReactNativeApp")
12 | add_subdirectory(application)
13 | add_subdirectory(runtime)
14 | add_subdirectory(tests)
15 |
--------------------------------------------------------------------------------
/ReactCommon/yoga/yoga/YGNodePrint.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2014-present, Facebook, Inc.
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 | #pragma once
8 | #include
9 |
10 | #include "Yoga.h"
11 |
12 | namespace facebook {
13 | namespace yoga {
14 |
15 | void YGNodeToString(
16 | std::string* str,
17 | YGNodeRef node,
18 | YGPrintOptions options,
19 | uint32_t level);
20 |
21 | } // namespace yoga
22 | } // namespace facebook
23 |
--------------------------------------------------------------------------------
/Examples/ActivityIndicator/ActivityIndicatorApp.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import {
3 | AppRegistry,
4 | ActivityIndicator,
5 | } from 'react-native';
6 |
7 | export default class ActivityIndicatorReactNative extends Component {
8 | render() {
9 | return (
10 |
14 | );
15 | }
16 | }
17 |
18 | AppRegistry.registerComponent('ActivityIndicatorApp', () => ActivityIndicatorReactNative)
19 |
--------------------------------------------------------------------------------
/ReactQt/application/src/main.qrc.in:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
13 | main.qml
14 | ${JS_BUNDLE_RESOURCE}
15 | ${FONTS_RESOURCE}
16 | ${IMAGES_RESOURCE}
17 | ${ICON_PNG_RESOURCE}
18 |
19 |
20 |
--------------------------------------------------------------------------------
/docs/SupportedNativeModulesList.md:
--------------------------------------------------------------------------------
1 | :warning::warning::warning:
2 | #### React Native Desktop project support stopped..
3 |
4 | ---
5 | ### Overview
6 |
7 | react-native 3rd party native components extended with `Desktop` platform support:
8 |
9 | - react-native-i18n https://github.com/status-im/react-native-i18n.git#version_0.0.8_desktop
10 | - react-native-config https://github.com/status-im/react-native-config.git
11 | - react-native-fs https://github.com/status-im/react-native-fs.git
12 | - react-native-sound-level https://github.com/punarinta/react-native-sound-level
13 |
--------------------------------------------------------------------------------
/ReactQt/runtime/src/qml/ReactView.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.4
2 | import React 0.1 as React
3 |
4 | React.Item {
5 | id: viewRoot
6 |
7 | property var p_transformMatrix;
8 | property var viewManager: null
9 | property string p_nativeID
10 | property int p_zIndex: 0
11 | property string p_pointerEvents: "auto"
12 | property var flexbox: React.Flexbox {control: viewRoot; viewManager: viewRoot.viewManager}
13 |
14 | objectName: p_nativeID
15 |
16 | onP_transformMatrixChanged: viewManager.manageTransformMatrix(p_transformMatrix, viewRoot)
17 |
18 | z: p_zIndex
19 | }
20 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-activityindicator-props/TestActivityIndicatorProps.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import {
3 | AppRegistry,
4 | ActivityIndicator,
5 | } from 'react-native';
6 |
7 | export default class ActivityIndicatorReactNative extends Component {
8 | render() {
9 | return (
10 |
14 | );
15 | }
16 | }
17 |
18 | AppRegistry.registerComponent('TestActivityIndicatorProps', () => ActivityIndicatorReactNative);
19 |
--------------------------------------------------------------------------------
/ReactQt/tests/common/reactpropertytestcase.h:
--------------------------------------------------------------------------------
1 | #ifndef REACTPROPERTYTTESTCASE_H
2 | #define REACTPROPERTYTTESTCASE_H
3 |
4 | #include "reacttestcase.h"
5 | #include
6 |
7 | class ReactPropertyTestCase : public ReactTestCase {
8 | Q_OBJECT
9 | public:
10 | explicit ReactPropertyTestCase(QObject* parent = nullptr);
11 |
12 | private slots:
13 |
14 | void testProperties();
15 |
16 | protected:
17 | virtual QVariantMap propValues() const = 0;
18 | virtual QQuickItem* control() const = 0;
19 | QVariant valueOfProperty(const QString& propertyName);
20 | };
21 |
22 | #endif // REACTPROPERTYTTESTCASE_H
23 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-netexecutor-socket/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (c) 2017-present, Status Research and Development GmbH.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | set(TEST_NAME test-netexecutor-socket)
10 |
11 |
12 | add_executable(${TEST_NAME} ${TEST_NAME}.cpp ${REACT_TEST_SOURCES})
13 | add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
14 | target_link_libraries(${TEST_NAME} ${REACT_TESTCASE_LIBRARIES})
15 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 |
5 | ---
6 |
7 | **Is your feature request related to a problem? Please describe.**
8 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9 |
10 | **Describe the solution you'd like**
11 | A clear and concise description of what you want to happen.
12 |
13 | **Describe alternatives you've considered**
14 | A clear and concise description of any alternative solutions or features you've considered.
15 |
16 | **Additional context**
17 | Add any other context or screenshots about the feature request here.
18 |
--------------------------------------------------------------------------------
/Libraries/Utilities/HMRLoadingView.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2017-present, Status Research and Development GmbH.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule HMRLoadingView
10 | * @flow
11 | */
12 |
13 | 'use strict';
14 |
15 | class HMRLoadingView {
16 | static showMessage(message: string) {
17 | }
18 |
19 | static hide() {
20 | }
21 | }
22 |
23 | module.exports = HMRLoadingView;
24 |
--------------------------------------------------------------------------------
/RNTester/js/helloworld.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Hello Bundled World
5 |
6 |
7 |
21 |
22 |
23 |
Hello Bundled World
24 |
25 |
26 |
--------------------------------------------------------------------------------
/ReactCommon/yoga/yoga/YGConfig.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2014-present, Facebook, Inc.
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 | #include "Yoga-internal.h"
10 | #include "Yoga.h"
11 |
12 | struct YGConfig {
13 | std::array experimentalFeatures;
14 | bool useWebDefaults;
15 | bool useLegacyStretchBehaviour;
16 | bool shouldDiffLayoutWithoutLegacyStretchBehaviour;
17 | float pointScaleFactor;
18 | YGLogger logger;
19 | YGCloneNodeFunc cloneNodeCallback;
20 | void* context;
21 |
22 | YGConfig(YGLogger logger);
23 | };
24 |
--------------------------------------------------------------------------------
/Libraries/Components/AppleTV/TVEventHandler.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule TVEventHandler
10 | * @flow
11 | */
12 | 'use strict';
13 |
14 | function TVEventHandler() {}
15 |
16 | TVEventHandler.prototype.enable = function(component: ?any, callback: Function) {};
17 |
18 | TVEventHandler.prototype.disable = function() {};
19 |
20 | module.exports = TVEventHandler;
21 |
--------------------------------------------------------------------------------
/local-cli/runDesktop/checkDesktop.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Copyright (C) 2016, Canonical Ltd.
4 | * All rights reserved.
5 | *
6 | * This source code is licensed under the BSD-style license found in the
7 | * LICENSE file in the root directory of this source tree. An additional grant
8 | * of patent rights can be found in the PATENTS file in the same directory.
9 | *
10 | * Author: Justin McPherson
11 | *
12 | */
13 |
14 | 'use strict';
15 |
16 | const path = require('path');
17 | const fs = require('fs');
18 |
19 | function checkDesktop(args) {
20 | return fs.existsSync(path.join(args.root, 'desktop/CMakeLists.txt'));
21 | }
22 |
23 | module.exports = checkDesktop;
24 |
--------------------------------------------------------------------------------
/ReactQt/tests/common/reactpropertytestcase.cpp:
--------------------------------------------------------------------------------
1 | #include "reacttestcase.h"
2 |
3 | #include "reactpropertytestcase.h"
4 | #include "rootview.h"
5 | #include
6 | #include
7 |
8 | ReactPropertyTestCase::ReactPropertyTestCase(QObject* parent) : ReactTestCase(parent) {}
9 |
10 | void ReactPropertyTestCase::testProperties() {
11 | for (const QString& propertyName : propValues().keys()) {
12 | auto propertyValue = propValues()[propertyName];
13 | QCOMPARE(valueOfProperty(propertyName), propertyValue);
14 | }
15 | }
16 |
17 | QVariant ReactPropertyTestCase::valueOfProperty(const QString& propertyName) {
18 | return valueOfControlProperty(control(), propertyName);
19 | }
20 |
--------------------------------------------------------------------------------
/Libraries/Vibration/VibrationIOS.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * Stub of VibrationIOS for Android.
10 | *
11 | * @providesModule VibrationIOS
12 | */
13 | 'use strict';
14 |
15 | var warning = require('fbjs/lib/warning');
16 |
17 | var VibrationIOS = {
18 | vibrate: function() {
19 | warning('VibrationIOS is not supported on this platform!');
20 | }
21 | };
22 |
23 | module.exports = VibrationIOS;
24 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-button-props/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (c) 2017-present, Status Research and Development GmbH.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | set(TEST_NAME test-button-props)
10 |
11 | set(REACT_TESTCASE_JS
12 | TestButtonProps.js
13 | )
14 |
15 |
16 | add_executable(${TEST_NAME} ${TEST_NAME}.cpp resources.qrc ${REACT_TEST_SOURCES} ${REACT_TESTCASE_JS})
17 | add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
18 | target_link_libraries(${TEST_NAME} ${REACT_TESTCASE_LIBRARIES})
19 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-button-size/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (c) 2017-present, Status Research and Development GmbH.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | set(TEST_NAME test-button-size)
10 |
11 | set(REACT_TESTCASE_JS
12 | TestButtonSize.js
13 | )
14 |
15 |
16 | add_executable(${TEST_NAME} ${TEST_NAME}.cpp resources.qrc ${REACT_TEST_SOURCES} ${REACT_TESTCASE_JS})
17 | add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
18 | target_link_libraries(${TEST_NAME} ${REACT_TESTCASE_LIBRARIES})
19 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-image-props/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (c) 2017-present, Status Research and Development GmbH.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | set(TEST_NAME test-image-props)
10 |
11 | set(REACT_TESTCASE_JS
12 | TestImageProps.js
13 | )
14 |
15 |
16 | add_executable(${TEST_NAME} ${TEST_NAME}.cpp resources.qrc ${REACT_TEST_SOURCES} ${REACT_TESTCASE_JS})
17 | add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
18 | target_link_libraries(${TEST_NAME} ${REACT_TESTCASE_LIBRARIES})
19 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-modal-props/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (c) 2017-present, Status Research and Development GmbH.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | set(TEST_NAME test-modal-props)
10 |
11 | set(REACT_TESTCASE_JS
12 | TestModalProps.js
13 | )
14 |
15 |
16 | add_executable(${TEST_NAME} ${TEST_NAME}.cpp resources.qrc ${REACT_TEST_SOURCES} ${REACT_TESTCASE_JS})
17 | add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
18 | target_link_libraries(${TEST_NAME} ${REACT_TESTCASE_LIBRARIES})
19 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-picker-props/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (c) 2017-present, Status Research and Development GmbH.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | set(TEST_NAME test-picker-props)
10 |
11 | set(REACT_TESTCASE_JS
12 | TestPickerProps.js
13 | )
14 |
15 |
16 | add_executable(${TEST_NAME} ${TEST_NAME}.cpp resources.qrc ${REACT_TEST_SOURCES} ${REACT_TESTCASE_JS})
17 | add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
18 | target_link_libraries(${TEST_NAME} ${REACT_TESTCASE_LIBRARIES})
19 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-slider-props/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (c) 2017-present, Status Research and Development GmbH.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | set(TEST_NAME test-slider-props)
10 |
11 | set(REACT_TESTCASE_JS
12 | TestSliderProps.js
13 | )
14 |
15 |
16 | add_executable(${TEST_NAME} ${TEST_NAME}.cpp resources.qrc ${REACT_TEST_SOURCES} ${REACT_TESTCASE_JS})
17 | add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
18 | target_link_libraries(${TEST_NAME} ${REACT_TESTCASE_LIBRARIES})
19 |
--------------------------------------------------------------------------------
/ReactCommon/yoga/yoga/YGConfig.cpp:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2014-present, Facebook, Inc.
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 "YGConfig.h"
9 |
10 | const std::array
11 | kYGDefaultExperimentalFeatures = {{false}};
12 |
13 | YGConfig::YGConfig(YGLogger logger)
14 | : experimentalFeatures(kYGDefaultExperimentalFeatures),
15 | useWebDefaults(false),
16 | useLegacyStretchBehaviour(false),
17 | shouldDiffLayoutWithoutLegacyStretchBehaviour(false),
18 | pointScaleFactor(1.0f), logger(logger), cloneNodeCallback(nullptr),
19 | context(nullptr) {}
20 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-textinput-clear/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (c) 2017-present, Status Research and Development GmbH.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | set(TEST_NAME test-textinput-clear)
10 |
11 | set(REACT_TESTCASE_JS
12 | TestTextInputClear.js
13 | )
14 |
15 |
16 | add_executable(${TEST_NAME} ${TEST_NAME}.cpp resources.qrc ${REACT_TEST_SOURCES} ${REACT_TESTCASE_JS})
17 | add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
18 | target_link_libraries(${TEST_NAME} ${REACT_TESTCASE_LIBRARIES})
19 |
--------------------------------------------------------------------------------
/ReactQt/tests/test-textinput-props/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | # Copyright (c) 2017-present, Status Research and Development GmbH.
3 | # All rights reserved.
4 |
5 | # This source code is licensed under the BSD-style license found in the
6 | # LICENSE file in the root directory of this source tree. An additional grant
7 | # of patent rights can be found in the PATENTS file in the same directory.
8 |
9 | set(TEST_NAME test-textinput-props)
10 |
11 | set(REACT_TESTCASE_JS
12 | TestTextInputProps.js
13 | )
14 |
15 |
16 | add_executable(${TEST_NAME} ${TEST_NAME}.cpp resources.qrc ${REACT_TEST_SOURCES} ${REACT_TESTCASE_JS})
17 | add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
18 | target_link_libraries(${TEST_NAME} ${REACT_TESTCASE_LIBRARIES})
19 |
--------------------------------------------------------------------------------
/RNTester/js/TurboModuleExample.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its 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
9 | */
10 |
11 | 'use strict';
12 |
13 | const React = require('react');
14 | const SampleTurboModuleExample = require('./SampleTurboModuleExample');
15 |
16 | exports.displayName = (undefined: ?string);
17 | exports.title = 'TurboModule';
18 | exports.description = 'Usage of TurboModule';
19 | exports.examples = [
20 | {
21 | title: 'SampleTurboModule',
22 | render: function(): React.Element {
23 | return ;
24 | },
25 | },
26 | ];
27 |
--------------------------------------------------------------------------------
/Libraries/Components/DatePickerAndroid/DatePickerAndroid.desktop-qt.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | *
9 | * @providesModule DatePickerAndroid
10 | * @flow
11 | */
12 | 'use strict';
13 |
14 | const DatePickerAndroid = {
15 | async open(options: Object): Promise