Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved : [TextInput] Auto correction doesn't call onChangeText after submit #2552 #8836

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
cb6e329
[0.29.0-rc.0] Bump version numbers
grabbou Jun 22, 2016
7ac931e
Publish DocDown Commits Into Next Release (0.29) (#8480)
JoelMarcey Jun 29, 2016
17b1272
Additional docdown commits to 0.29 (#8492)
JoelMarcey Jun 29, 2016
561cfc6
Specify width and height for Image(remote source)
sunnylqm Jun 29, 2016
14bb6fa
Merge pull request #8514 from JoelMarcey/image-pr-to-0.29
JoelMarcey Jun 30, 2016
cf97c9a
adds log-ios and log-android cli commands
vitalis Jun 23, 2016
8e376f3
[0.29.0-rc.1] Bump version numbers
Jul 1, 2016
9819681
Pass the current and previous transition props to `render`, `onTransi…
Jun 21, 2016
c412d25
Fix stale scene cleanup
Jun 22, 2016
0a2ef02
Fix transtion props `layout` in NavigationTransitioner.
Jun 24, 2016
8839b6d
Fixes ActivityIndicatorIOS doesn't hide initially
redmar Jun 28, 2016
9f9c6a8
Fixed setDefaults not being called in React Native apps, fixed typo
nathanajah Jun 22, 2016
9f9408a
Add RCTAnimation to Podspec
oblador Jun 30, 2016
354dc2c
Update to React 15.2.0 final
sophiebits Jul 1, 2016
288867c
[0.29.0-rc.2] Bump version numbers
ide Jul 2, 2016
9f14dd0
Add post documentation lockdown survey link
JoelMarcey Jul 4, 2016
58e988b
Change API for iOS
alexeylang Jul 4, 2016
2f8cb25
[0.29.0-rc3] Bump version numbers
bestander Jul 5, 2016
ab1bc0a
[0.29.0-rc.3] Bump version numbers
bestander Jul 5, 2016
85bdc46
Merge pull request #8566 from JoelMarcey/post-lockdown-survey-to-0.29
JoelMarcey Jul 5, 2016
4554967
[0.29.0] Bump version numbers
grabbou Jul 5, 2016
eb55b99
Cherry-pick: Fix Navigation Links (#8703)
JoelMarcey Jul 12, 2016
4d70b85
Fixed the issue due to which js assets are not bundled in the apk whe…
Jul 10, 2016
214a41d
changes link file on Android to MainApplication.java for 0.29 update
GantMan Jul 8, 2016
b361490
Fix 'Unexpected EOF' in old bridge
astreet Jul 11, 2016
4dabb57
Fix bug in cancelling last task in TaskQueue
sahrens Jul 11, 2016
dc57f95
Remove instructions about IP address on iOS
charpeni Jul 9, 2016
2725101
Don't hard crash if you get a null stack trace in Android
astreet Jul 7, 2016
70fe990
[0.29.1] Bump version numbers
grabbou Jul 13, 2016
2f5914d
Introduce navigators in the tutorial
hramos Jul 1, 2016
b0ce541
Fix links from networking to navigation in The Basics.
hramos Jul 11, 2016
5ffda49
Merge pull request #8756 from JoelMarcey/navigation-cherry-pick
hramos Jul 13, 2016
29ab9d1
Fix native modules linking in 0.29.1
Jul 16, 2016
07936fa
[0.29.2] Bump version numbers
grabbou Jul 17, 2016
8017d5d
Merge branch '0.29-stable' of github.com:facebook/react-native into 0…
grabbou Jul 17, 2016
326f707
Revert "[0.29.2] Bump version numbers"
grabbou Jul 17, 2016
62494fb
[0.29.2] Bump version numbers
grabbou Jul 17, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 59 additions & 30 deletions Libraries/Components/MapView/MapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,58 @@ const requireNativeComponent = require('requireNativeComponent');

type Event = Object;

/**
* State an annotation on the map.
*/
export type AnnotationDragState = $Enum<{
/**
* Annotation is not being touched.
*/
idle: string;
/**
* Annotation dragging has began.
*/
starting: string;
/**
* Annotation is being dragged.
*/
dragging: string;
/**
* Annotation dragging is being canceled.
*/
canceling: string;
/**
* Annotation dragging has ended.
*/
ending: string;
}>;

/**
* A component for displaying embeddable maps and annotations using the native
* iOS MKMapView class. The Android version is not currently available in the
* open source React Native project, but you can use Leland Richardson's
* cross-platform and more feature-complete
* **This component is only supported on iOS.**
*
* `MapView` is used to display embeddable maps and annotations using
* `MKMapView`.
*
* For a cross-platform solution, check out
* [react-native-maps](https://github.com/lelandrichardson/react-native-maps)
* instead.
* by Leland Richardson.
*
* ```
* import React, { Component } from 'react';
* import { MapView } from 'react-native';
*
* class MapMyRide extends Component {
* render() {
* return (
* <MapView
* style={{height: 200, margin: 40}}
* showsUserLocation={true}
* />
* );
* }
* }
* ```
*
*/

const MapView = React.createClass({
Expand All @@ -51,16 +88,15 @@ const MapView = React.createClass({
propTypes: {
...View.propTypes,
/**
* Used to style and layout the `MapView`. See `StyleSheet.js` and
* `ViewStylePropTypes.js` for more info.
* Used to style and layout the `MapView`.
*/
style: View.propTypes.style,

/**
* If `true` the app will ask for the user's location and display it on
* the map. Default value is `false`.
*
* **NOTE**: on iOS, you need to add the `NSLocationWhenInUseUsageDescription`
* **NOTE**: You'll need to add the `NSLocationWhenInUseUsageDescription`
* key in Info.plist to enable geolocation, otherwise it will fail silently.
*/
showsUserLocation: React.PropTypes.bool,
Expand All @@ -69,21 +105,18 @@ const MapView = React.createClass({
* If `true` the map will follow the user's location whenever it changes.
* Note that this has no effect unless `showsUserLocation` is enabled.
* Default value is `true`.
* @platform ios
*/
followUserLocation: React.PropTypes.bool,

/**
* If `false` points of interest won't be displayed on the map.
* Default value is `true`.
* @platform ios
*/
showsPointsOfInterest: React.PropTypes.bool,

/**
* If `false` compass won't be displayed on the map.
* If `false`, compass won't be displayed on the map.
* Default value is `true`.
* @platform ios
*/
showsCompass: React.PropTypes.bool,

Expand All @@ -96,7 +129,9 @@ const MapView = React.createClass({
/**
* When this property is set to `true` and a valid camera is associated with
* the map, the camera’s heading angle is used to rotate the plane of the
* map around its center point. When this property is set to `false`, the
* map around its center point.
*
* When this property is set to `false`, the
* camera’s heading angle is ignored and the map is always oriented so
* that true north is situated at the top of the map view
*/
Expand All @@ -105,7 +140,9 @@ const MapView = React.createClass({
/**
* When this property is set to `true` and a valid camera is associated
* with the map, the camera’s pitch angle is used to tilt the plane
* of the map. When this property is set to `false`, the camera’s pitch
* of the map.
*
* When this property is set to `false`, the camera’s pitch
* angle is ignored and the map is always displayed as if the user
* is looking straight down onto it.
*/
Expand All @@ -120,11 +157,9 @@ const MapView = React.createClass({
/**
* The map type to be displayed.
*
* - standard: standard road map (default)
* - satellite: satellite view
* - hybrid: satellite view with roads and points of interest overlaid
*
* @platform ios
* - `standard`: Standard road map (default).
* - `satellite`: Satellite view.
* - `hybrid`: Satellite view with roads and points of interest overlaid.
*/
mapType: React.PropTypes.oneOf([
'standard',
Expand Down Expand Up @@ -154,8 +189,7 @@ const MapView = React.createClass({
}),

/**
* Map annotations with title/subtitle.
* @platform ios
* Map annotations with title and subtitle.
*/
annotations: React.PropTypes.arrayOf(React.PropTypes.shape({
/**
Expand Down Expand Up @@ -192,7 +226,7 @@ const MapView = React.createClass({
onBlur: React.PropTypes.func,

/**
* Annotation title/subtile.
* Annotation title and subtile.
*/
title: React.PropTypes.string,
subtitle: React.PropTypes.string,
Expand Down Expand Up @@ -253,7 +287,6 @@ const MapView = React.createClass({

/**
* Map overlays
* @platform ios
*/
overlays: React.PropTypes.arrayOf(React.PropTypes.shape({
/**
Expand All @@ -278,21 +311,17 @@ const MapView = React.createClass({
})),

/**
* Maximum size of area that can be displayed.
* @platform ios
* Maximum size of the area that can be displayed.
*/
maxDelta: React.PropTypes.number,

/**
* Minimum size of area that can be displayed.
* @platform ios
* Minimum size of the area that can be displayed.
*/
minDelta: React.PropTypes.number,

/**
* Insets for the map's legal label, originally at bottom left of the map.
* See `EdgeInsetsPropType.js` for more information.
* @platform ios
*/
legalLabelInsets: EdgeInsetsPropType,

Expand All @@ -307,7 +336,7 @@ const MapView = React.createClass({
onRegionChangeComplete: React.PropTypes.func,

/**
* Deprecated. Use annotation onFocus and onBlur instead.
* Deprecated. Use annotation `onFocus` and `onBlur` instead.
*/
onAnnotationPress: React.PropTypes.func,

Expand Down
Loading