mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
1cb0a3342a
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43068 This diff adds `react-native-test-library` package. It contains native module and native component example, and targets both the new and the old architecture. It has structure similar to many OSS React Native libraries, and is supposed to be used to test the integration with third-party libraries. It is integrated with RNTester as the **OSS Library Example** screen. {F1457510909} **Change Background** tests native commands. **Set Opacity** tests native props. **Get Random Number** tests native module. Changelog: [Internal] Reviewed By: RSNara Differential Revision: D50793835 fbshipit-source-id: ff6daefab10e6e9f13049e3013f8f63cfa8a929e
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"name": "@react-native/oss-library-example",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "Package that includes native module exapmle, native component example, targets both the old and the new architecture. It should serve as an example of a real-world OSS library.",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/facebook/react-native.git",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/facebook/react-native.git",
|
|
"directory": "packages/react-native-test-library"
|
|
},
|
|
"main": "./index.js",
|
|
"exports": {
|
|
"./": "./index.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"scripts": {
|
|
"build": "yarn clean && babel --out-dir lib src",
|
|
"clean": "rimraf lib",
|
|
"codegen": "npx react-native codegen",
|
|
"prepare": "yarn run codegen && yarn run build"
|
|
},
|
|
"files": [
|
|
"generated"
|
|
],
|
|
"devDependencies": {
|
|
"@babel/core": "^7.20.0",
|
|
"@react-native/babel-preset": "0.75.0-main",
|
|
"react-native": "*"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "*",
|
|
"react-native": "*"
|
|
},
|
|
"codegenConfig": {
|
|
"name": "OSSLibraryExampleSpec",
|
|
"type": "all",
|
|
"jsSrcsDir": "src",
|
|
"outputDir": {
|
|
"ios": "ios",
|
|
"android": "android/src/main"
|
|
},
|
|
"includesGeneratedCode": true,
|
|
"android": {
|
|
"javaPackageName": "com.reactnative.osslibraryexample"
|
|
}
|
|
}
|
|
}
|