chore: update react-native to version 0.57.8 (#92)

* chore(package): update react-native to version 0.57.8

* chore(package): update lockfile yarn.lock

* remove smoke test as no longer necessary
This commit is contained in:
Michał Pierzchała
2018-12-13 22:14:23 +01:00
committed by GitHub
parent ced096c048
commit 3f6b257a39
3 changed files with 7 additions and 62 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
"jest": "^23.6.0",
"metro-react-native-babel-preset": "^0.49.0",
"react": "16.6.1",
"react-native": "^0.57.7",
"react-native": "^0.57.8",
"react-test-renderer": "16.6.1",
"release-it": "^9.0.0",
"strip-ansi": "^5.0.0",
-55
View File
@@ -1,55 +0,0 @@
// @flow
import React from 'react';
import {
Image,
Text,
TextInput,
Modal,
View,
ScrollView,
ActivityIndicator,
TouchableOpacity,
} from 'react-native';
import { render } from '..';
class RNComponents extends React.Component<*> {
render() {
return (
<View>
<Modal visible>
<ScrollView>
<Image />
<TextInput value="value" />
<TouchableOpacity onPress={() => {}}>
<Text>t1</Text>
<Text>t2</Text>
<Text>t3</Text>
</TouchableOpacity>
<ActivityIndicator />
</ScrollView>
</Modal>
</View>
);
}
}
test('getByName smoke test to see how unstable it gets', () => {
const { getByName } = render(<RNComponents />);
expect(() => getByName('Image')).toThrow(); // – doesn't have displayName set properly
getByName('TextInput');
expect(() => getByName('Modal')).toThrow(); // – doesn't have displayName set properly
getByName('View');
getByName('ScrollView');
expect(() => getByName('ActivityIndicator')).toThrow(); // – doesn't have displayName set properly
getByName('TouchableOpacity');
});
test('getAllByName smoke test to see how unstable it gets', () => {
const { getAllByName } = render(<RNComponents />);
const [t1, t2, t3] = getAllByName('Text');
expect(t1.props.children).toBe('t1');
expect(t2.props.children).toBe('t2');
expect(t3.props.children).toBe('t3');
});
+6 -6
View File
@@ -6051,10 +6051,10 @@ react-is@^16.6.1:
version "16.6.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.6.1.tgz#f77b1c3d901be300abe8d58645b7a59e794e5982"
react-native@^0.57.7:
version "0.57.7"
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.57.7.tgz#5b3af1c43366c41d8d8d2540fea8ce590060bca1"
integrity sha512-mdNibV6NblH8gbbcWjLjH6lVOkrXuCiIi+RQ+6e2QlrOIJVsKC216VvBhHsvdDIRO94v1qD8LMnTYlBY09qzQQ==
react-native@^0.57.8:
version "0.57.8"
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.57.8.tgz#1a840fbe144cd3902cc14313a783ce28efc48cb9"
integrity sha512-K6DAMTPTq+lxVYC73y4Kh/bgLajddBaIKzwsVeV4JOoS1Fdq48/ISXD3vApV+x+/IBVTXnrT9qlA+9U6MMZCqA==
dependencies:
"@babel/runtime" "^7.0.0"
absolute-path "^0.0.0"
@@ -6104,7 +6104,7 @@ react-native@^0.57.7:
serve-static "^1.13.1"
shell-quote "1.6.1"
stacktrace-parser "^0.1.3"
ws "^1.1.0"
ws "^1.1.5"
xcode "^1.0.0"
xmldoc "^0.4.0"
yargs "^9.0.0"
@@ -7497,7 +7497,7 @@ write@^0.2.1:
dependencies:
mkdirp "^0.5.1"
ws@^1.1.0:
ws@^1.1.0, ws@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.5.tgz#cbd9e6e75e09fc5d2c90015f21f0c40875e0dd51"
dependencies: