mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Re-license and rename UIExplorer integration test app as RNTester
Reviewed By: yungsters Differential Revision: D4950085 fbshipit-source-id: 44574b5d0ef0d2ad5dfc714309b18dc69cbad9ff
This commit is contained in:
committed by
Facebook Github Bot
parent
82c4b9f0b7
commit
4a80dceac7
@@ -17,16 +17,16 @@ var { View } = ReactNative;
|
||||
|
||||
const {
|
||||
TestModule,
|
||||
UIExplorerTestModule,
|
||||
RNTesterTestModule,
|
||||
} = ReactNative.NativeModules;
|
||||
|
||||
|
||||
class SyncMethodTest extends React.Component {
|
||||
componentDidMount() {
|
||||
if (UIExplorerTestModule.echoString('test string value') !== 'test string value') {
|
||||
if (RNTesterTestModule.echoString('test string value') !== 'test string value') {
|
||||
throw new Error('Something wrong with sync method export');
|
||||
}
|
||||
if (UIExplorerTestModule.methodThatReturnsNil() != null) {
|
||||
if (RNTesterTestModule.methodThatReturnsNil() != null) {
|
||||
throw new Error('Something wrong with sync method export');
|
||||
}
|
||||
TestModule.markTestCompleted();
|
||||
|
||||
Reference in New Issue
Block a user