Skip to content

Commit 150faa9

Browse files
committed
1) 6.0.1.
2) devDependencies - @babel/plugin-proposal-decorators - latest. 3) AlterStyles @deprecated.
1 parent f01f6aa commit 150faa9

File tree

4 files changed

+8
-66
lines changed

4 files changed

+8
-66
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ Font sizes are calculated as `baseFontSize + numberOfSteps * step`. `font` conta
464464

465465
Version number|Changes
466466
-|-
467+
v6.0.1|1.&nbsp;`AlterStyles` deprecated in favour of `combineStyles()` from `react-native-common-ui-components/js/styles.js`.<br>2.&nbsp;`@babel/plugin-proposal-decorators` is specified as a dev dependency and the postinstall script is deleted.
467468
v6.0.0|1.&nbsp;The latest version of [react-native-localization](https://www.npmjs.com/package/react-native-localization) is specified in `package.json`.<br>2.&nbsp;**Backwards-incompatible change** in `strings.js`: `strings.formatString()` is no longer available if a sub-object name was specified. `strings.all.formatString()` has to be used instead.
468469
v5.1.0|1.&nbsp;An iOS-only bug fixed in `ApplicationSession.manage()`.<br>2.&nbsp;State changes can be optionally logged to the console. An argument`ApplicationSession._setSessionType()`
469470
v5.0.0|**Backwards-incompatible change**: `styles.screen` is superseded by `styles.screen.container`.

js/AlterStyles.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { DottedStringObject } from "simple-common-utils";
22

3+
/**
4+
* @deprecated Since version 6.0.1. Please use combineStyles() from react-native-common-ui-components/js/styles.js.
5+
*/
36
export default class AlterStyles {
47
constructor(...styles) {
58
this.styles = styles;

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{
22
"name": "react-native-common-utils",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "A collection of useful classes for RN projects.",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"postinstall": "node postinstall.js"
98
},
109
"dependencies": {
1110
"core-decorators": "latest",
1211
"react-native-extended-stylesheet": "latest",
1312
"react-native-localization": "latest",
1413
"simple-common-utils": "latest"
1514
},
15+
"devDependencies": {
16+
"@babel/plugin-proposal-decorators": "latest"
17+
},
1618
"repository": {
1719
"type": "git",
1820
"url": "git+https://github.com/RobinBobin/react-native-common-utils.git"

postinstall.js

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)