mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Expose additional private modules
Summary: - TextInputState as TextInput.State - Touchable - flattenStyle as StyleSheet.flatten - ReactNativeART as ART Original discussion in #1821 Closes https://github.com/facebook/react-native/pull/3308 Reviewed By: sebmarkbage Differential Revision: D2527152 Pulled By: javache fb-gh-sync-id: 19d4ef9d4c0e6587b9f0793e1ca624aebb034f3b
This commit is contained in:
committed by
facebook-github-bot-4
parent
7af752403e
commit
0da2004e88
@@ -566,8 +566,14 @@ function Pattern(url, width, height, left, top) {
|
||||
this._brush = [PATTERN, url, +left || 0, +top || 0, +width, +height];
|
||||
}
|
||||
|
||||
var ReactART = {
|
||||
// This doesn't work on iOS and is just a placeholder to get Spectrum running.
|
||||
// I will try to eliminate this dependency in Spectrum and remove it from
|
||||
// ReactART proper.
|
||||
function CSSBackgroundPattern() {
|
||||
return new Color('rgba(0,0,0,0)');
|
||||
}
|
||||
|
||||
var ReactART = {
|
||||
LinearGradient: LinearGradient,
|
||||
RadialGradient: RadialGradient,
|
||||
Pattern: Pattern,
|
||||
@@ -578,7 +584,7 @@ var ReactART = {
|
||||
ClippingRectangle: ClippingRectangle,
|
||||
Shape: Shape,
|
||||
Text: Text,
|
||||
|
||||
CSSBackgroundPattern: CSSBackgroundPattern
|
||||
};
|
||||
|
||||
module.exports = ReactART;
|
||||
|
||||
Reference in New Issue
Block a user