Skip to content

Commit 88a6061

Browse files
author
Igor Canedo
committed
updating to rn 0.49.3
1 parent d74fccf commit 88a6061

File tree

10 files changed

+1529
-1261
lines changed

10 files changed

+1529
-1261
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"no-duplicate-imports": 0,
1313
"no-underscore-dangle": 0,
1414
"react/forbid-prop-types": 0,
15+
"react/default-props-match-prop-types": 0,
1516
"import/no-unresolved": 0,
1617
"import/export": 2,
1718
"import/no-extraneous-dependencies": [

flow-typed/npm/stringz_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 17908e8cb7dcac8f4cfe9378780b0286
2-
// flow-typed version: <<STUB>>/stringz_v0.2.2/flow_v0.53.1
1+
// flow-typed signature: 856173216dd06d839e17d6c964accf97
2+
// flow-typed version: <<STUB>>/stringz_v0.2.3/flow_v0.56.0
33

44
/**
55
* This is an autogenerated libdef stub for:

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,30 @@
2020
"author": "globo.com",
2121
"license": "MIT",
2222
"peerDependencies": {
23-
"react": "^16.0.0-alpha.12",
24-
"react-native": "^0.47.2"
23+
"react": "16.0.0",
24+
"react-native": "0.49.3"
2525
},
2626
"dependencies": {
2727
"stringz": "0.2.3"
2828
},
2929
"devDependencies": {
30-
"babel-eslint": "^7.2.3",
31-
"babel-jest": "^20.0.3",
32-
"babel-preset-react-native": "^2.1.0",
33-
"coveralls": "^2.12.0",
34-
"eslint": "^4.4.1",
35-
"eslint-config-airbnb": "^15.1.0",
36-
"eslint-plugin-flowtype": "^2.35.0",
37-
"eslint-plugin-import": "^2.7.0",
38-
"eslint-plugin-jsx-a11y": "^5.1.1",
39-
"eslint-plugin-react": "^7.2.1",
40-
"eslint-plugin-react-native": "^3.0.1",
41-
"flow-bin": "^0.53.1",
42-
"jest": "^20.0.4",
43-
"react": "^16.0.0-alpha.12",
44-
"react-dom": "^16.0.0-alpha.12",
45-
"react-native": "^0.47.2",
46-
"react-test-renderer": "16.0.0-alpha.12"
30+
"babel-eslint": "8.0.1",
31+
"babel-jest": "21.2.0",
32+
"babel-preset-react-native": "4.0.0",
33+
"coveralls": "3.0.0",
34+
"eslint": "4.8.0",
35+
"eslint-config-airbnb": "16.0.0",
36+
"eslint-plugin-flowtype": "2.39.0",
37+
"eslint-plugin-import": "2.7.0",
38+
"eslint-plugin-jsx-a11y": "6.0.2",
39+
"eslint-plugin-react": "7.4.0",
40+
"eslint-plugin-react-native": "3.1.0",
41+
"flow-bin": "0.56.0",
42+
"jest": "21.2.1",
43+
"react": "16.0.0",
44+
"react-dom": "16.0.0",
45+
"react-native": "0.49.3",
46+
"react-test-renderer": "16.0.0"
4747
},
4848
"jest": {
4949
"preset": "react-native",

sample/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"watch-index": "sync-files --watch ../index.js react-native-draftjs-render/index.js"
1212
},
1313
"dependencies": {
14-
"react": "16.0.0-alpha.12",
15-
"react-native": "0.47.2",
14+
"react": "16.0.0",
15+
"react-native": "0.49.3",
1616
"stringz": "0.2.3"
1717
},
1818
"devDependencies": {
19-
"babel-jest": "^20.0.3",
20-
"babel-preset-react-native": "^2.1.0",
21-
"jest": "^20.0.4",
22-
"react-test-renderer": "16.0.0-alpha.12",
19+
"babel-jest": "21.2.0",
20+
"babel-preset-react-native": "4.0.0",
21+
"jest": "21.2.1",
22+
"react-test-renderer": "16.0.0",
2323
"sync-files": "1.0.3"
2424
},
2525
"jest": {

sample/yarn.lock

Lines changed: 698 additions & 532 deletions
Large diffs are not rendered by default.

src/components/DraftJsText.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ const DraftJsText = (props: DraftJsTextPropsType): any => {
3131

3232
const customStyle = props.customStyles ? props.customStyles[props.type] : undefined;
3333

34-
return (<Text
35-
style={[defaultStyles[props.type], customStyle]}
36-
>{textElements}</Text>);
34+
return (
35+
<Text
36+
style={[defaultStyles[props.type], customStyle]}
37+
>{textElements}
38+
</Text>);
3739
}
3840
return null;
3941
};

src/components/OrderedListItem.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ const styles = StyleSheet.create({
3232
});
3333

3434
const OrderedListItem = (props: OrderedListItemPropsType): any => {
35-
const number = props.counter;
36-
const separator = props.separator;
35+
const {
36+
counter,
37+
separator,
38+
} = props;
39+
3740
const orderedListItemCustomStyleContainer = props.customStyles ?
3841
props.customStyles.orderedListItemContainer :
3942
undefined;
@@ -47,7 +50,7 @@ const OrderedListItem = (props: OrderedListItemPropsType): any => {
4750
<Text
4851
style={[styles.orderedListItemNumber, orderedListItemCustomStyleNumber]}
4952
>
50-
{number}{separator}
53+
{counter}{separator}
5154
</Text>
5255
<DraftJsText
5356
{...props}

src/flatAttributesList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const createArrayWithSegments = (numbersList: Array<number>): Array<Array<number
2929

3030
const addTypeToSegments = (
3131
segments: Array<Array<number>>,
32-
originalStyles: Array<Object>): Array<Object> => {
32+
originalStyles: Array<Object>,
33+
): Array<Object> => {
3334
const objectList = [];
3435
segments.forEach((segment: Array<number>) => {
3536
const types = [];

src/loadAttributes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ const loadAttributes = (params: ParamsType): any => {
5454
const attrs = flatAttributesList(attributes);
5555

5656
if (attrs[0].offset > 0) {
57-
elementList.push(
58-
<Text key={generateKey()}>{substring(text, 0, attrs[0].offset)}</Text>);
57+
elementList.push(<Text key={generateKey()}>{substring(text, 0, attrs[0].offset)}</Text>);
5958
}
6059

6160
attrs.forEach((item: Object, index: number) => {

0 commit comments

Comments
 (0)