MCPcopy Index your code
hub / github.com/cloudle/ruui

github.com/cloudle/ruui @0.9.65

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.9.65 ↗ · + Follow
445 symbols 806 edges 170 files 15 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

React Universal UI

Build Status npm version

Cross-platform (React Native and Web Browser) React, React Native's UI components to re-use everywhere.

Platforms

Native platforms: iOs, Android (for Mac, Windows or Linux we could just use Atom to bring our React Native code on it's web and have that same code-base run on Native environment when they got better support for React Native building block).

Browser support: Chrome, Firefox, Safari >= 7, IE 10, Edge.

Overview

"React Universal UI" is a cross-platform React's UI Kit - which could be run on both Web Browser and React Native environment, write once and use everywhere.

See home page for detailed documentation and tutorials (the site is under construction and will be ready soon)

Quick start

Existing Web or React Native project:

  1. Install react-universal-ui package (no further config required)
npm install --save react-universal-ui
  1. Install and configure react-native-web using their instruction (optional, only need on Web project)

  2. Wrap your root component under RuuiProvider

import { RuuiProvider } from 'react-universal-ui';
import App from './app';

const AppContainer = () => {
  return <RuuiProvider>
    <App/>
  </RuuiProvider>;
};

New project:

React Universal UI come with it's own cli (command line interface), install it by..

npm install -g ruui-cli

With ruui-cli installed globally.. we should now able to use ruui command to create a new project:

ruui init SuperCoolProject

This will take a while when cli create the project structure for us as well as install necessary dependencies..

Run ruui dev under your React Universal UI project folder..

cd SuperCoolProject
ruui dev

*note: the project totally generated using react-native-cli, which mean it is a valid React Native project.. we could run it normally with:

react-native run-ios
react-native run-android

How it work

React Native:

Essentially this is just a normal React Native UI Library - which absolutely work with React Native's ecosystem. Feel free to use those UI with your favorite React Native library even if you don't care about Browser yet (but believe me, you'll love it - Browser run give us tons of cool stuff).

Browser:

React Native Web let us run our React Native code on Browser and React Universal UI (this project) cares about behavior of those components on Browser.

Universal:

There're some differences between React Native and Web building block - such as Routing, Touch/Mouse handling... this project cares and provide support for those differences (there're helpers under utils module), which save your time and let you focus on write your Universal App.

Components and status

  • [x] Cross-platform Navigation, Routing integration
  • [x] Native Navigation (based on React Native's ExperimentalNavigation)
  • [x] React-Router for Web/Native (Full-featured Browser support, fallback to Memory Navigation History for React Native)
  • [x] Redux helpers
  • [x] Context Provider
  • [x] Reactive device common info (e.g Network info, Screen size..)
  • [x] Configurable theme (skin)
  • [x] Switches (exposed from react-native-web)
  • [x] Button Component
  • [x] Ripple effect
  • [x] Fade effect
  • [x] Raised style
  • [x] Icon Button
  • [x] Tooltip (from 12 directions - Web only)
  • [x] Text Input Component (Material-inspired, but highly customizable)
  • [x] Underline effect
  • [x] Floating label
  • [x] Force label-floating
  • [ ] Field Error
  • [x] Hint
  • [ ] Multi-line
  • [ ] Number, currency, datetime masking
  • [x] Tooltip (Web only - Alpha implementation)
  • [x] Multi layer modals
  • [x] Pop-up style (Alert, Prompt..)
  • [x] Full-screen style
  • [x] Dropdown
  • [x] DropdownContainer (similar to a View, but could host a Dropdown component)
  • [x] Configurable dropdown from 12 directions, passing context..
  • [x] Loading Mask
  • [x] Snackbar
  • [x] Selector Api, Select component
  • [x] Animated Tab View
  • [x] Essential module export - for generic use case
  • [ ] App intro slider
  • [ ] Tab View scene with headers
  • [ ] Image slider
  • [ ] Action sheets
  • [ ] Swipe-able segments
  • [ ] Datetime picker
  • [ ] Radio
  • [ ] Checkbox
  • [x] Range Slider
  • [x] Connection status (mask)

Related projects

License

This project is licensed under the MIT License.

Contributing

This project under main support of Rooxim Company.

We're exciting to see more contribution from community, by contributing your code to ruui you agree to license your contribution under the MIT license.

Core symbols most depended-on inside this repo

connect
called by 15
src/utils/ruuiStore.js
createStore
called by 11
src/utils/ruuiStore.js
getInstallPackage
called by 6
cli-ruui/index.js
remove
called by 6
src/components/Navigation/NavigationAnimatedValueSubscription.js
buildCache
called by 5
cli-local/util/cache.js
combineReducers
called by 5
src/utils/ruuiStore.js
configureStore
called by 4
example/next/store/index.js
ruuiCliModule
called by 4
cli-local/init.js

Shape

Function 191
Method 140
Class 114

Languages

TypeScript97%
Java3%

Modules by API surface

src/components/Navigation/CardStackPanResponder.js14 symbols
src/components/Navigation/PointerEventsContainer.js13 symbols
src/components/Navigation/NavigationTransitioner.js13 symbols
src/utils/ruuiStore.js12 symbols
src/store/action/app.js12 symbols
cli-ruui/index.js12 symbols
src/utils/store/appAction.js11 symbols
src/utils/helpers.js11 symbols
src/components/Navigation/PagerPanResponder.js11 symbols
src/components/modal.js10 symbols
src/components/TabView/TabViewPagerAndroid.js8 symbols
src/components/slider.js7 symbols

For agents

$ claude mcp add ruui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact