From 6dedc3d5b555473b065579462865658358db11e3 Mon Sep 17 00:00:00 2001 From: bgrieder Date: Mon, 9 Nov 2015 12:35:14 +0100 Subject: [PATCH] Fixes to Text Component --- react-native/react-native.d.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/react-native/react-native.d.ts b/react-native/react-native.d.ts index 92ad7a217..15cf5312b 100644 --- a/react-native/react-native.d.ts +++ b/react-native/react-native.d.ts @@ -5,12 +5,12 @@ /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // -// This work is mostly based on the work made by Bernd Paradies: https://github.com/bparadie +// This work is based on an original work made by Bernd Paradies: https://github.com/bparadie // -// These definitions are meant to be used with the compiler target set to ES6 +// These definitions are meant to be used with the TSC compiler target set to ES6 // // WARNING: this work is very much beta: -// -it may be missing react-native definitions +// -it is still missing react-native definitions // -it re-exports the whole of react 0.14 which may not be what react-native actually does // /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -248,7 +248,7 @@ declare namespace ReactNative { } // https://facebook.github.io/react-native/docs/text.html#props - export interface TextProperties { + export interface TextProperties extends React.Props { /** * numberOfLines number * @@ -278,6 +278,10 @@ declare namespace ReactNative { style?: TextStyle; } + export interface TextStatic extends React.ComponentClass { + + } + /** * IOS Specific properties for TextInput @@ -1904,13 +1908,13 @@ declare namespace ReactNative { export var StyleSheet: StyleSheetStatic; export var TabBarIOS: TabBarIOSStatic; export type TabBarIOS = TabBarIOSStatic; + export var Text: TextStatic; export var TextInput: TextInputStatic export var TouchableHighlight: TouchableHighlightStatic; export var TouchableOpacity:TouchableOpacityStatic; export var TouchableWithoutFeedback: TouchableWithoutFeedbackStatic; export var View: ViewStatic; - export var Text: React.ComponentClass; export var AlertIOS: React.ComponentClass; export var SegmentedControlIOS: React.ComponentClass; export var SwitchIOS: React.ComponentClass;