Socket
Socket
Sign inDemoInstall

rax-text

Package Overview
Dependencies
Maintainers
6
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rax-text - npm Package Compare versions

Comparing version 1.0.0-beta.5 to 1.0.0-miniapp.beta.0

src/.DS_Store

2

package.json
{
"name": "rax-text",
"version": "1.0.0-beta.5",
"version": "1.0.0-miniapp.beta.0",
"description": "Text component for Rax.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

@@ -1,5 +0,5 @@

import {createElement, forwardRef} from 'rax';
import {createElement} from 'rax';
import {isWeex} from 'universal-env';
let Text = (props, ref) => {
export default (props) => {
let {children} = props;

@@ -37,3 +37,3 @@ if (!Array.isArray(children)) {

return <text ref={ref} {...nativeProps} />;
return <text {...nativeProps} />;
} else {

@@ -57,3 +57,3 @@ let styleProps = {

return <span {...nativeProps} ref={ref} style={{...styles.text, ...styleProps}}>{textString}</span>;
return <span {...nativeProps} style={{...styles.text, ...styleProps}}>{textString}</span>;
}

@@ -72,6 +72,2 @@ };

}
};
Text = forwardRef(Text);
export default Text;
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc