mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix crash on overlayColor usage (#20929)
Summary: see snack for demo on the issue: https://snack.expo.io/jyrno42/overlaycolor-issue-snack Pull Request resolved: https://github.com/facebook/react-native/pull/20929 Differential Revision: D9727250 Pulled By: hramos fbshipit-source-id: 03c95d4b5a38ae51ecebb8615fda1af9599c0508
This commit is contained in:
committed by
Facebook Github Bot
parent
fe4f03517c
commit
6bc483c8cc
+27
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.tests;
|
||||
|
||||
import android.view.View;
|
||||
import com.facebook.react.testing.ReactAppInstrumentationTestCase;
|
||||
|
||||
/**
|
||||
* Simple test case for passing overlayColor prop to the Image component
|
||||
*/
|
||||
public class ImageOverlayColorTestCase extends ReactAppInstrumentationTestCase {
|
||||
|
||||
@Override
|
||||
protected String getReactApplicationKeyUnderTest() {
|
||||
return "ImageOverlayColorTestApp";
|
||||
}
|
||||
|
||||
public void testOverlayColorDoesNotCrash() {
|
||||
View image = getViewByTestId("image");
|
||||
assertNotNull(image);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user