Skip to content

Releases: cloudle/ruui

Improvement for [Input] Component

19 Jul 11:35

Choose a tag to compare

Allow focus(), blur(), clear(), isFocused() function as Input's instance method.

import { Input } from 'react-universal-ui';

/*after get instance from "ref" (e.g. myInput)*/
<Input ref={(instance) => { this.myInput = instance; }} {...otherProps}/>

/*it's possible to call:
* - this.myInput.focus();
* - this.myInput.blur();
* - this.myInput.clear();
* - this.myInput.isFocused();
* like we could with ReactNative's [TextInput]
* */

Beter support for non MacOs terminal.

14 Jul 23:14

Choose a tag to compare

  • Improve terminal message (color) from ruui-cli for non MacOs machine.
  • Fix bug that cause ruui init <projectName> failed on Windows.
  • Cli's dev-server allow LAN access, and also allow override host by specify in ruui.config.js.
module.exports = {
  host: 'our-host-or-ip', // default is 0.0.0.0, which allow connection from local network
};