🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

bpk-react-utils

Package Overview
Dependencies
Maintainers
6
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpk-react-utils - npm Package Compare versions

Comparing version

to
2.8.0-css.0

src/isRTL-test.js

3

index.js

@@ -26,2 +26,3 @@ /*

import withDefaultProps from './src/withDefaultProps';
import isRTL from './src/isRTL';

@@ -35,2 +36,3 @@ export {

wrapDisplayName,
isRTL,
};

@@ -44,2 +46,3 @@ export default {

wrapDisplayName,
isRTL,
};

5

package.json
{
"name": "bpk-react-utils",
"version": "2.7.10",
"version": "2.8.0-css.0",
"description": "Utilities for Backpack's React components.",

@@ -24,4 +24,3 @@ "main": "index.js",

"registry": "https://registry.npmjs.org/"
},
"gitHead": "a9633f5cc0af2596bcd9d4bae78c7967bdbc6a33"
}
}

@@ -184,1 +184,18 @@ # bpk-react-utils

| transitionTimeout | number | true | - |
## `isRTL`
Returns true if the browser is showing content right-to-left.
### Usage
```js
import React from 'react';
import { isRTL } from 'bpk-react-utils';
if (isRTL()) {
// do RTL stuff
} else {
// do LTR stuff
}
```