mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-19 21:29:36 +08:00
Fix no shadow warnings (#22190)
Summary: Fixes `no-shadow` eslint errors. Pull Request resolved: https://github.com/facebook/react-native/pull/22190 Differential Revision: D13564238 Pulled By: cpojer fbshipit-source-id: 96ba36b397088fa406e8f5781b1538a0b6804a8d
This commit is contained in:
committed by
Facebook Github Bot
parent
bd32234e6e
commit
2c3f807ace
@@ -50,8 +50,8 @@ describe('Android Test App', function() {
|
||||
driver.on('status', function(info) {
|
||||
console.log(info.cyan);
|
||||
});
|
||||
driver.on('command', function(method, path, data) {
|
||||
if (path === 'source()' && data) {
|
||||
driver.on('command', function(method, command, data) {
|
||||
if (command === 'source()' && data) {
|
||||
console.log(
|
||||
' > ' + method.yellow,
|
||||
'Screen contents'.grey,
|
||||
@@ -59,11 +59,11 @@ describe('Android Test App', function() {
|
||||
pd.xml(data).yellow,
|
||||
);
|
||||
} else {
|
||||
console.log(' > ' + method.yellow, path.grey, data || '');
|
||||
console.log(' > ' + method.yellow, command.grey, data || '');
|
||||
}
|
||||
});
|
||||
driver.on('http', function(method, path, data) {
|
||||
console.log(' > ' + method.magenta, path, (data || '').grey);
|
||||
driver.on('http', function(method, urlPath, data) {
|
||||
console.log(' > ' + method.magenta, urlPath, (data || '').grey);
|
||||
});
|
||||
|
||||
// every interval print what is on the screen
|
||||
|
||||
Reference in New Issue
Block a user