Ben Alpert
dd56ccb9c7
[react-native] Fix capitalization of "REact"
2015-04-27 13:52:57 -08:00
Tadeu Zagallo
d293bed5ab
[ReactNative] Fix analyze errors on oss
2015-04-24 08:28:35 -08:00
Ben Alpert
dd6f7743eb
Fix updating RCTText with new text of the same size
...
Summary:
Fixes #979 .
Previously, a Text whose width is determined automatically (as opposed to set by a container) would position the text incorrectly after an update to the text *if* the text's width did not change (i.e., when changing only digits in a font with tabular numbers).
Every time RCTShadowText's RCTMeasure runs, it sets the text container's size to be the maximum allowed size for the text. When RCTText's drawRect is called later, it relied on layoutSubviews having been called to set the text container's size back to the proper width. But if RCTMeasure returned the same dimensions as last time, then RCTText's frame wasn't reset and so layoutSubviews was never re-called. With this change, we set the textContainer's size each time we draw the text.
We could also fix this by using a different NSTextContainer instance in RCTMeasure. Not sure what the pros and cons of that are.
Closes https://github.com/facebook/react-native/pull/989
Github Author: Ben Alpert <balpert@fb.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-04-23 16:12:35 -08:00
Dr. Kibitz
621a30c8b8
Fixes #813
...
Summary:
Also fix RCTShadowText export name.
Closes https://github.com/facebook/react-native/pull/857
Github Author: "Dr. Kibitz" <info@drkibitz.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-04-23 04:06:16 -08:00
James Ide
901c24ebb8
[Text] Ensure that the text background is transparent by default
...
Summary:
For a very simple view I was observing that the text background was black and had to manually be set to transparent. This ensures that text nodes have a transparent background by default.
Closes https://github.com/facebook/react-native/pull/256
Github Author: James Ide <ide@jameside.com>
Test Plan:
This example component no longer renders what looks like a black block, and instead displays legible text.
var Example = React.createClass({
render: function() {
return (
<View style={styles.container}>
<Text>hello</Text>
</View>
);
},
});
var styles = StyleSheet.create({
container: {
flex: 1,
},
};
2015-04-21 19:11:26 -08:00
guru inamdar
7a68691686
MapView to support MKPointAnnotation using new attribute annotate in Map...
...
Summary:
### MapView to support Pin annotation
var pinLocation = {
latitude: property.latitude,
longitude: property.longitude,
title: property.title
};
this.state = {propertyPoint: pinLocation};
<MapView style={styles.map} region={this.state.region} annotate={this.state.propertyPoint}>
</MapView>
![mapview-pinannotation](https://cloud.githubusercontent.com/assets/845379/7100280/6c1ffc08-dfe5-11e4-9d1b-8da6a65da1bc.png )
Closes https://github.com/facebook/react-native/pull/810
Github Author: guru inamdar <guru.inamdar@gmail.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-04-14 18:03:37 -08:00
Alex Akers
fcc87916d2
[React Native] Fix RCTText crashes
2015-04-09 07:34:12 -08:00
Nick Lockwood
bf4868edda
Added non-class-scanning-based approach fror registering js methods
2015-04-08 05:45:20 -08:00
Nick Lockwood
60a6533422
Removed redundant views and shadow views
2015-04-07 14:08:03 -08:00
Tadeu Zagallo
bec7d0202c
[ReactNative] Fix variable shadowing in RCTText
2015-04-07 13:29:43 -08:00
Alex Akers
397d4666d9
[React Native] #WIP Modify RCTShadowText measure function to honor maxNumberOfLines property
2015-04-07 02:11:01 -08:00
laiso
e35521300a
(Xcode) Set indent=2 in all xcodeproj files.
...
Summary:
These are default settings now.
I saw my Xcode be configured indent=4.
![2015-03-30 12 16 11 pm](https://cloud.githubusercontent.com/assets/39830/6889697/98f8b930-d6d6-11e4-81c8-d2146855d127.png )
Closes https://github.com/facebook/react-native/pull/472
Github Author: laiso <laiso@lai.so>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-04-01 17:14:45 -08:00
Nick Lockwood
698988017c
Added support for text padding
2015-03-27 09:21:27 -08:00
Alex Akers
7a97043a3e
[React Kit] Remove embarrassing TODOs
2015-03-26 10:33:05 -08:00
Tadeu Zagallo
20291a02df
[ReactNative] s/ReactKit/React/g
2015-03-26 02:42:24 -08:00
Tadeu Zagallo
bbb78df076
[React Native] Add CocoaPods spec
2015-03-25 21:53:26 -08:00
Nick Lockwood
19e328fb08
Added explicit types for all view properties
2015-03-25 21:20:24 -08:00
Nick Lockwood
f124c32143
[WIP] Added support for italics and additional font weights
2015-03-25 16:09:08 -08:00
Krzysztof Magiera
972bbd7adf
[react_native] JS files from D1941151: Allow fontWeight to be 100,200,...,900
2015-03-25 09:21:30 -08:00
Nick Lockwood
94db4facf5
Unfork UIManager
2015-03-24 17:24:51 -08:00
Marshall Roch
a343c4345e
Flowify Libraries/StyleSheet and Libraries/Text
2015-03-24 16:22:59 -08:00
Marshall Roch
b4a39a2a9e
Flowify TextStylePropTypes and fix a bug with unsupported props
2015-03-23 17:44:41 -08:00
Christopher Chedeau
1aeb02ada3
[ReactNative] Expanded license on obj-c files
2015-03-23 13:18:29 -08:00
Christopher Chedeau
e1ef0328d9
[ReactNative] Expanded license on js files
2015-03-23 13:17:54 -08:00
James Ide
62766e6077
[Text] Account for font leading so descenders are not clipped
...
Summary:
Prior to this diff, descenders (the hanging tail on letters like g and j) were clipped on the last line because the text measurer did not account for the font leading. With `NSStringDrawingUsesFontLeading` it honors the fonts line spacing.
To test: open the Text demo of the UIExplorer and see that the bottom of the letter g is no longer clipped off.
## Before
![Screenshot Before](https://cloud.githubusercontent.com/assets/379606/6364746/1c5527a0-bc60-11e4-8aeb-2147a6eb6596.png )
## After
![Screenshot After](https://cloud.githubusercontent.com/assets/379606/6364747/1e9abe58-bc60-11e4-8c34-9f20ad8572ff.png )
Closes https://github.com/facebook/react-native/pull/96
Github Author: James Ide <ide@jameside.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-03-23 11:40:24 -08:00
Alex Akers
48cc440bd3
[React Native] Fix iOS 7 crashes b/c missing Photos.fmwk
2015-03-23 08:06:58 -08:00
Felix Kling
81d024924c
[react-native] Use SpreadProperty to make react-docgen happy
2015-03-20 17:04:12 -08:00
Tadeu Zagallo
196bc85629
[ReactNative] Remove ExpandingText
2015-03-18 13:08:23 -08:00
Nick Lockwood
18d1805695
[ReactNative] Updated RKText to new UIManager system
2015-03-17 06:37:24 -08:00
Spencer Ahrens
b396de3cc8
[ReactNative] s/RK/RCT in OSS
2015-03-17 02:48:57 -08:00
Nick Lockwood
8799f0c487
Ported ART to new UIManager
2015-03-15 16:01:58 -08:00
Christopher Chedeau
1e01c26457
[ReactNative] s/Text.stylePropType/Text.propTypes.style/
2015-03-09 09:49:28 -08:00
Christopher Chedeau
d8e83c882e
[ReactNative] Move around and reformat comments for the documentation
2015-03-09 09:49:24 -08:00
Martin Konicek
9e2bdede15
[react_native] JS files for D1885531
2015-03-06 07:32:17 -08:00
Christopher Chedeau
e979f2324a
[ReactNative] Fix ExpandingText prop types
2015-03-05 10:49:16 -08:00
Spencer Ahrens
3daaf1741c
[ReactNative] Clean up libraries and include paths
2015-03-03 10:46:34 -08:00
Nick Lockwood
3b11b9d6c3
[WIP] Migrated View Managers over to new architecture
2015-03-01 16:34:14 -08:00
Spencer Ahrens
c7b5a1ddfa
[ReactNative] Use local CocoaPod config for ReactNative modules
2015-02-27 08:36:53 -08:00
Spencer Ahrens
99f7a0ab9d
[ReactNative] Pull out some OSS modules into separate libs
2015-02-27 08:36:52 -08:00