{"id":22430000,"url":"https://github.com/rxreactnative/react-native-test-rxstick","last_synced_at":"2026-05-03T04:40:21.933Z","repository":{"id":57340877,"uuid":"231067912","full_name":"RXReactNative/react-native-test-rxstick","owner":"RXReactNative","description":"React-Native Test JavaScript","archived":false,"fork":false,"pushed_at":"2023-11-17T05:04:38.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T06:19:36.746Z","etag":null,"topics":["react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RXReactNative.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-31T09:59:37.000Z","updated_at":"2022-08-11T08:59:40.000Z","dependencies_parsed_at":"2022-09-07T15:40:15.806Z","dependency_job_id":null,"html_url":"https://github.com/RXReactNative/react-native-test-rxstick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-test-rxstick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-test-rxstick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-test-rxstick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-test-rxstick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RXReactNative","download_url":"https://codeload.github.com/RXReactNative/react-native-test-rxstick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245798357,"owners_count":20673902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react-native"],"created_at":"2024-12-05T21:06:45.696Z","updated_at":"2026-05-03T04:40:21.905Z","avatar_url":"https://github.com/RXReactNative.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# rxstick\n\n小按钮 测试 用于测试\n\n----\n\n这个只是框架(也可以说是 入口)，具体页面，以及功能需要自己定义。\n\n\nsimple test framework\n\n## Installation\nOpen a Terminal in the project root and run:\n\n```sh\n  yarn add react-native-test-rxstick -dev\n```\nor if you use npm:\n\n```sh\n  npm install react-native-test-rxstick --save-dev\n```\n\n\u003cbr /\u003e\n\n![srxboys-stick](https://github.com/RXReactNative/react-native-test-rxstick/blob/master/screen_img/stick.jpg)\n![srxboys-detail](https://github.com/RXReactNative/react-native-test-rxstick/blob/master/screen_img/stick-detail.jpeg)\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n## Usage\n```js\nimport React from 'react';\nimport Stick, { RXTheme, RXRoot } from '../react-native-test-rxstick'\n\n//第一种\nimport TestTheme from './xx/xx'\nimport TestRoot from './xx/xx'\n\nexport default class TestStick extends Stick {\n\n  constructor(props) {\n    super(props);\n  }\n\n  static allowAccess() {\n    return true;\n  }\n\n  static setTheme() {\n    // const TestTheme = require('./TestTheme').default; //第二种\n    RXTheme.update(TestTheme);\n  }\n\n  static setRoot() {\n    // const TestRoot = require('./TestRoot').default; //第二种\n    RXRoot.replaceComponent(\u003cTestRoot /\u003e)\n  }\n}\n```\n\nTestTheme (stick style)\n```js\nexport default {\n  stickBackgroundColor: '#FFF68F',\n  stickColor: '#00FFFF',\n  stickFontSize: 18,\n}\n```\n\n\nTestRoot\n```js\n// Component\n```\n\n---\n\n### My approach:\n1. Configure react native bundle packaging \u003cbr /\u003e\n2. Replace the stick entry file before packaging, debug / release \u003cbr /\u003e\n\u003cbr /\u003e\nDisadvantage: not debuggable \u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### 我的处理方法:\n1. 配置react-native bundle打包 \u003cbr /\u003e\n2. 在打包前替换stick入口文件，debug/release \u003cbr /\u003e\n\u003cbr /\u003e\n坏处：不可调试\n\u003cbr /\u003e\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxreactnative%2Freact-native-test-rxstick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxreactnative%2Freact-native-test-rxstick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxreactnative%2Freact-native-test-rxstick/lists"}