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

Import everycommit #852

Merged
merged 450 commits into from
Apr 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
450 commits
Select commit Hold shift + click to select a range
0cdf56c
[ReactNative] Fix React Devtools integration
frantic Mar 23, 2015
e1ef032
[ReactNative] Expanded license on js files
vjeux Mar 23, 2015
1aeb02a
[ReactNative] Expanded license on obj-c files
vjeux Mar 23, 2015
2cafe22
[ReactNative] Use deprecated ix in TabBarExample
Mar 23, 2015
540cb4b
[react-packager] Default to index.js from main if it's a dir
Mar 23, 2015
cf126f1
Flowify Library/Utilities/
mroch Mar 24, 2015
463a5bc
[ReactNative] Remove `arc build` instructions from require
frantic Mar 24, 2015
b4a39a2
Flowify TextStylePropTypes and fix a bug with unsupported props
mroch Mar 24, 2015
bc92191
[react-packager] Fix regression with transform errors
Mar 24, 2015
8ae0eac
[ReactNative] Open Source PushNotifications and move Badge Number met…
tadeuzagallo Mar 24, 2015
21d88f4
Bump .buckversion to a5b8b8ef45d714018ba3542cf98d48ef6aab7088.
k21 Mar 24, 2015
20a0bea
Fix build - remove relative import path
k21 Mar 24, 2015
c9a40a9
[ReactNative] OSS JSNavigationStack w/ Examples
Mar 24, 2015
3f137da
[ReactNative] OSS snapshot tests
sahrens Mar 24, 2015
fe0527a
[ReactNative] Remove auto permission request from setAppIconBadgeNumber
tadeuzagallo Mar 24, 2015
57ee9e7
[ReactNative] Use oss TimerMixin
tadeuzagallo Mar 24, 2015
f9f219e
[ReactNative] OSS Responder example
Mar 24, 2015
9a12b9c
Flowify renderApplication
mroch Mar 24, 2015
23094db
[ReactNative] JSNavigationStack rename routeMapper to renderSceneForR…
Mar 24, 2015
6daf7d2
last batch of UIExplorer flowification
Mar 24, 2015
e4bf45b
flowify some Libraries
Mar 24, 2015
40d71e6
JS files from D1936817: Add to XMLHttpRequest android and share code …
Mar 24, 2015
9b03bec
[ReactNative] rename navigationOperations to navigator
Mar 24, 2015
8b79808
[react-packager] Fix more issues with node modules
Mar 24, 2015
eb16bb4
[ReactNative] Fix OSS Dependency Issues
Mar 24, 2015
a343c43
Flowify Libraries/StyleSheet and Libraries/Text
mroch Mar 24, 2015
909e393
[react-packager] kill non-standard RAW_SOURCE_MAP
Mar 25, 2015
94db4fa
Unfork UIManager
nicklockwood Mar 25, 2015
3c0239a
[ReactNative] Add more logging to RCTJSONParse
Mar 25, 2015
d71bfa1
[ReactNative] JSNavigationStack - Use key to blow away old scenes
Mar 25, 2015
9eec8aa
Flowify a bunch of Libraries
mroch Mar 25, 2015
af95e95
[ReactNative] cleanup view example
sahrens Mar 25, 2015
7311260
[ReactNative] Rename JSNavigationStack to ReactNavigator, rename scen…
Mar 25, 2015
c7056c6
[ReactNative] bring back some native modules
sahrens Mar 25, 2015
15f6783
[ReactNative] Add snapshot tests for examples
sahrens Mar 25, 2015
972bbd7
[react_native] JS files from D1941151: Allow fontWeight to be 100,200…
kmagiera Mar 25, 2015
0315719
Flowify ReactIOSEventEmitter
mroch Mar 25, 2015
20585eb
[ReactNative] Add debugger and change SampleApp files structure
frantic Mar 25, 2015
d0d6dbf
[ReactKit] Add shake development menu
frantic Mar 25, 2015
18b6d5c
flowify some Libraries
Mar 25, 2015
95deed5
flowified Libraries from Avik
Mar 25, 2015
ea57084
[MAdMan][Android] Make things look more Androidy
philikon Feb 27, 2015
96c63c9
[ReactNative] Document AppStateIOS
Mar 25, 2015
cd81fee
[ReactNative] Flow and doc formatting for NetInfo
Mar 25, 2015
87e7067
Fix for incorrect contentSize reported by RCTScrollView
nicklockwood Mar 25, 2015
7d80207
[react-packager] Readme
Mar 25, 2015
d131e1e
[ReactNative] Improve View documentation
vjeux Mar 25, 2015
f124c32
[WIP] Added support for italics and additional font weights
nicklockwood Mar 25, 2015
7ffa794
flowify Libraries/ReactIOS
mroch Mar 26, 2015
c5a6b44
[RFC][ReactNative] Integrate dev menu directly into RootView
frantic Mar 26, 2015
546d03d
[ReactNative] Update package.json to be npm-ready
vjeux Mar 26, 2015
0fe0af2
[ReactNative] Add react-native-start bin to react-native packge
frantic Mar 26, 2015
f53510a
[ReactNative] Add gitignore example for SampleApp
frantic Mar 26, 2015
8679c0b
[ReactNative] Add deep linking api
tadeuzagallo Mar 26, 2015
f6fc7f3
[ReactNative] PanResponder documentation
Mar 26, 2015
20501b3
[ReactNative] Add copyright header for code copied from the jQuery UI…
Mar 26, 2015
558b8c6
[ReactNative] s/ReactNavigator/Navigator/
tadeuzagallo Mar 26, 2015
19e328f
Added explicit types for all view properties
nicklockwood Mar 26, 2015
bbb78df
[React Native] Add CocoaPods spec
tadeuzagallo Mar 26, 2015
5b8aad5
[ReactNative] License headers and renaming
Mar 26, 2015
f9c1a93
[ReactNative] Navigator docs
Mar 26, 2015
d2206d4
[Assets] Allow scripts to override assetRoots
ide Mar 26, 2015
330c1ab
[React Native] [FRC - Don't accept] View border support
nicklockwood Mar 26, 2015
20291a0
[ReactNative] s/ReactKit/React/g
tadeuzagallo Mar 26, 2015
293b9b9
[React Native] Fix incorrect if-statement in RCTGeolocation
Mar 26, 2015
2448946
[ReactNative] Navigator Example Overhaul
Mar 26, 2015
b00a364
[React Native] Fix CocoaPods spec
Mar 26, 2015
d88716f
[ReactNative] UIViewControllerBasedStatusBarAppearance = NO in SampleApp
frantic Mar 26, 2015
921da23
[ReactNative][CustomComponents] Update old headers
tadeuzagallo Mar 26, 2015
7e02a1e
[ReactNative] PushNotificationIOS documentation
Mar 26, 2015
030b264
flowify a few more Libraries
Mar 26, 2015
bdd1705
[ReactNative][MAdMan] Clean up after D1942269
philikon Mar 26, 2015
7a97043
[React Kit] Remove embarrassing TODOs
Mar 26, 2015
031adab
[react-packager] better error when main file not found
Mar 26, 2015
02ff495
[react_native] Update default bundle name to org.reactjs.native.*
kmagiera Mar 26, 2015
011e342
Revert .buckversion bumps.
k21 Mar 26, 2015
4a6bcc3
[CLI] react-native start won't run from dir with spaces
antimatter15 Mar 26, 2015
932e600
[ReactNative][Docs] Remove references to ReactNavigator from docs
tadeuzagallo Mar 26, 2015
39fe5ec
[react-packager] Fix node v0.11.14 query parse bug
Mar 26, 2015
662673d
Fix font crash on iOS < 8.2
nicklockwood Mar 26, 2015
35589d6
[react-packager] move dependencies to root package.json
Mar 27, 2015
7bcb467
Cancel contents animation before setting new contents in RCTNetworkIm…
Mar 27, 2015
701dd1f
Fix sourceTree of RCTActionSheet.xcodeproj
dalinaum Mar 27, 2015
a925082
[react-packager] Watch asset roots for changes to update dependency g…
Mar 27, 2015
6989880
Added support for text padding
nicklockwood Mar 27, 2015
3e6c2e8
Remove duplication in ScrollResponder.js | Edward Kim
haruair Mar 27, 2015
edff192
[ReactNative] Make it easier to generate offline bundles
frantic Mar 27, 2015
02ac401
[react_native] Sync D1939291
andreicoman11 Mar 27, 2015
e2b2186
Bump packager version to match GitHub
sophiebits Mar 27, 2015
89fce9a
Make bounds and scale of gif network images respond to device and styles
Mar 27, 2015
c430782
[ReactNative] Fix a minor bug in AnimationUtils
Mar 27, 2015
bf4bd4b
[ReactNative] JS files for D1947217
Mar 27, 2015
dde70d3
[ReactNative] Fix LinkingIOS event listening
tadeuzagallo Mar 27, 2015
0fdf8b4
[ReactNative] Use one key and add comment on the movies app
tadeuzagallo Mar 27, 2015
7dc411b
[react-packager] Fix assetRoots when starting in node_modules
Mar 28, 2015
c2b2d45
[react-packager] Inherit from Error correctly
Mar 28, 2015
c94f7c3
[React Native] Sync from github
Mar 28, 2015
199613d
[react-native] Add React.addons.createFragment
sophiebits Mar 28, 2015
a587525
Fixing TouchableOpacity and TouchableHighlight documentation
rwwarren Mar 28, 2015
ce8cde3
[ReactNative][docs] LinkingIOS
tadeuzagallo Mar 29, 2015
5865cfa
[iOS][Assets]: Cleaning up more 1x png from Libraries
Mar 26, 2015
15eb5fd
Fixed threading issues in RCTImageDownloader
nicklockwood Mar 30, 2015
961f301
Renamed throttleScrollCallbackMS to scrollEventThrottle
nicklockwood Mar 30, 2015
57d0a5a
Better date support
nicklockwood Mar 30, 2015
a2cfc5f
Changed LayoutAnimation to use ms instead of seconds for consistency
nicklockwood Mar 30, 2015
a9167a2
[ReactNative] PropTypes for NavigationBars
philikon Mar 30, 2015
ac0ad3a
[TextInput] returnKeyType, enablesReturnKeyAutomatically, secureTextE…
ide Mar 31, 2015
db693f3
[ReactNative] Clean up no longer needed reference to NavigationBarClass
philikon Mar 30, 2015
42689c4
[react-native] Fix race condition in removeSubviewsFromContainerWithID:
sophiebits Mar 31, 2015
1996914
[react-native] Support returning null from a component
sophiebits Mar 31, 2015
50dc709
missing '.' in ListView.DataSource example
Cspeisman Mar 31, 2015
4b4e8ec
Expose html prop on WebView
colinramsay Mar 31, 2015
d75bd44
[react-native] Bring React.render behavior in line with web
sophiebits Mar 31, 2015
f506d95
[Pod] Preserve header directory structure
ide Mar 31, 2015
c9d4dd3
[react-native] v0.3.1
Mar 31, 2015
23e992a
[react-packager] check-in bluebird
Mar 31, 2015
a0998ab
[catalyst] fix typo
zjj010104 Mar 31, 2015
c82893b
[ReactNative] Remove global MutationObserver to fix Bluebird feature …
vjeux Mar 31, 2015
8d7b6d9
Fix a crash in RCTAsyncLocalStorage when the value is not a string.
janicduplessis Mar 31, 2015
2f00cb0
[ScrollView] Add "bounces" property to ScrollView propTypes
ide Mar 31, 2015
774442e
Adding `scrollWithoutAnimationTo` method for ScrollViews
ccheever Mar 31, 2015
9e931e9
[ReactNative] Add few hints in the UI
frantic Mar 31, 2015
b2fc956
[react-native] Fix documentation extraction for View
sophiebits Mar 31, 2015
571ade3
[react-native] map view - add onTouch** props
zjj010104 Apr 1, 2015
6870c27
Fix WebView automaticallyAdjustContentInsets error
jordanna Apr 1, 2015
bb9c647
[ReactNative] RCTView's shadowOffset is of float type, not CGFloat
fkgozali Apr 1, 2015
0ca3136
Bugfix/require module regexp
daviskoh Apr 1, 2015
414d975
make renderError and renderLoading props optional for WebView
donyu Apr 1, 2015
92a6c3e
[react-packager] Fix EISDIR error
Apr 1, 2015
2d42c9e
[ReactNative] Added support for 3 digit hex colors | Arthur Lee
arthuralee Apr 1, 2015
e8155c9
[ReactNative] Normalize name for examples
vjeux Apr 1, 2015
6638713
[Touchable] Change default `activeOpacity` to 0.2 to match iOS
ide Apr 1, 2015
87599bf
[react-packager] Switch from Q to Bluebird as promises library
pilwon Apr 1, 2015
63c2f80
Do not expose define references in require polyfill
jgable Apr 1, 2015
b6503ba
Packager status page & build validating against it.
JustinCarmony Apr 1, 2015
5a6bf00
[ReactNative] Rename NavigationBar props
Apr 1, 2015
3de7ad6
[react_native] JS files from D1955639: [react_native] Update Anim…
astreet Apr 1, 2015
4838d59
Add support for web-style data-uris
colinramsay Apr 1, 2015
dee36b8
[ReactNative] Improve <Image> docs
vjeux Apr 1, 2015
a1e6d70
[ReactNative] Fix doc page for PushNotificationIOS
Apr 1, 2015
45344d2
[react-native] Fix dev menu keyboard shortcut in sample app
krazyeom Apr 1, 2015
e355213
(Xcode) Set indent=2 in all xcodeproj files.
laiso Apr 2, 2015
b1e502a
[react-packager] Ignore dotfiles in file watching
Apr 2, 2015
f370f9c
[ReactNative] Unfork RKRootView
tadeuzagallo Apr 2, 2015
087c609
Fix hitTest for auto
boopathi Apr 2, 2015
36098a8
Fixed tap-to-zoom in Groups photo viewer
Apr 2, 2015
f66c164
[react-native] Update react to 0.13.1, jstransform alongside
sophiebits Apr 2, 2015
5be7fae
[ReactNative] Allow recover from debugger error
tadeuzagallo Apr 2, 2015
4d44d9c
[ReactNative] Cleanup TabBar and its example
vjeux Apr 2, 2015
128be89
[react_native] JS files from D1961099: Format stack trace on native side
frantic Apr 2, 2015
9df3e88
[ReactNative] Fix script load from local files
tadeuzagallo Apr 2, 2015
03cf69d
[react-native] Nicer error for undefined or string tag names
sophiebits Apr 2, 2015
df851b3
[ReactNative] Workaround double cmd+r bug
vjeux Apr 2, 2015
811a7aa
Update deps order - core modules first
stephenlacy Apr 2, 2015
7283490
SliderIOS.js comments - grammar correction
jakeboone02 Apr 3, 2015
f652e8e
[UIExplorer] Fixed 'Push View Example' in NavigatorIOS example
robbiemccorkell Apr 3, 2015
47ab105
[ReactNative] Turn of lint warning for constant conditions
Apr 3, 2015
28fb6ca
add @flow back to View.js
Apr 3, 2015
6681274
[madman] prevent pulling the content down inconsistently when the key…
fkgozali Apr 3, 2015
7b048ca
Remove false annotation
Apr 3, 2015
a9af05f
react-packager: Add ES6 import statement support to DependencyGraph.
pilwon Apr 3, 2015
b9d1902
add maximumValue and minimumValue as valid attributes for native Slider
donyu Apr 3, 2015
6e6bd28
[Flow] Clean react-native-github for Flow v0.8.0
gabelevi Apr 3, 2015
34ed3a0
[ReactNative] Start Navigator gesture config, disable gesture in AdsM…
Apr 3, 2015
749f6a6
[react-packager] Don't cache rejected promise
Apr 3, 2015
b6eeb61
[react-packager] Deprecate global image namespace in favor of CommonJ…
Apr 4, 2015
a2fa40f
Added constraint of child type to touchablewithoutfeedback
dzannotti Apr 4, 2015
de8a370
Fixing jsdoc parsing of functions that are defined over multiple line…
Apr 4, 2015
8a8244a
navigator.getCurrentRoutes()
Apr 4, 2015
620bfb6
[ReactNative] rename Animation to AnimationExperimental with warning …
sahrens Apr 4, 2015
54889da
[ReactNative] Remove experimental Portal only needed for android righ…
sahrens Apr 4, 2015
2c0e3e9
[ReactNative] Revert D1965911
vjeux Apr 6, 2015
b9219ab
[ReactNative][MAdMan] Add type for image source, flowify AdsManagerOb…
philikon Apr 2, 2015
e14b5a1
[ReactNative] wrong deprecated prop check in RCTConvert
fkgozali Apr 6, 2015
dc5be73
[ReactNative] Revert high-level Subscribable
Apr 7, 2015
2aa5288
Add promise support to AsyncStorage
Apr 7, 2015
397d466
[React Native] #WIP Modify RCTShadowText measure function to honor ma…
Apr 7, 2015
5b3e935
[ReactNative] Fix crash on image download
tadeuzagallo Apr 7, 2015
80cd687
Refactored RCTLog and added facility to prepend extra data to the log…
nicklockwood Apr 7, 2015
5372061
[react-packager] check in image-size module
Apr 7, 2015
bec7d02
[ReactNative] Fix variable shadowing in RCTText
tadeuzagallo Apr 7, 2015
60a6533
Removed redundant views and shadow views
nicklockwood Apr 7, 2015
645f2a7
[ReactNative] npm install --save chalk
frantic Apr 7, 2015
f2d08f5
[ReactNative] Better error message for EADDRINUSE
frantic Apr 7, 2015
31b6ff6
[ReactNative] Replace Backstack with BackAndroid
Apr 7, 2015
ccbd656
[AdsManager] Correct back button functionality
Apr 7, 2015
7239023
[ReactNative] Fix and re-add WebView executor
tadeuzagallo Apr 8, 2015
6854da9
[ReactNative] Remove bridge retaining cycles
tadeuzagallo Apr 8, 2015
d63bf42
[ReactNative] Fix Navigator exception when touching during transition
Apr 8, 2015
009f8eb
[ReactNative] Fix typo/bug in Navigator._completeTransition
Apr 8, 2015
220e116
[fbobjc] revert rFBOBJCdba3daf9a595f452d069f2a74a9a11f251999b2e
Apr 8, 2015
a1ec752
[ReactNative] Do flow check when running packager
sahrens Apr 8, 2015
21a054e
[ReactNative] Update package.json
vjeux Apr 8, 2015
bf4868e
Added non-class-scanning-based approach fror registering js methods
nicklockwood Apr 8, 2015
805d521
[react_native] JS files from D1952037: [react_native] Make TextIn…
andreicoman11 Apr 8, 2015
341d1a1
[react_native] JS files from D1955360: [react_native] Implement T…
andreicoman11 Apr 8, 2015
8a57c4e
[React Native] RCT_EXPORT lvl.2
Apr 8, 2015
bd7b9da
[react-packager] Implement new style asset packaging (with dimensions)
Apr 8, 2015
9ea0002
[ReactNative] fixup AnimationExperimental a bit
sahrens Apr 8, 2015
3d2413a
[react-packager] Don't depend on error.stack being available
Apr 8, 2015
7a8d39e
[react-native] Listen on all IPv6 interfaces
sophiebits Apr 8, 2015
be46ccf
Navigator: Changed transitioner background color to 'transparent'
jlevine22 Apr 8, 2015
ae76d39
[MAdMan] Dimensions.get('window') considered harmful
philikon Apr 8, 2015
e5aeb31
[ReactNative] <Text>: apply the fontWeight correctly if fontFamily st…
fkgozali Apr 9, 2015
839e533
[ReactNative] Re-configure horizontal swipe animations
Apr 9, 2015
4a781dd
[ReactNative] fix exception handler method name
sahrens Apr 9, 2015
17ab4f2
Ensure that NSLocationWhenInUseUsageDescription is set, throw error i…
Apr 9, 2015
fcc8791
[React Native] Fix RCTText crashes
Apr 9, 2015
20d95ed
[Scroll] Include content insets in scroll events
ide Apr 9, 2015
50309c9
NavigatorIOS navigationBarHidden property support
Apr 9, 2015
e1fb8e6
Remove duplicate word
tylermcginnis Apr 9, 2015
bbddd02
[ReactNative] Bring back crash reporting
frantic Apr 9, 2015
e3ce3d0
[react-packager] Implement the browser field package.json spec
Apr 9, 2015
21f45e8
[react-packager] Correct module extension regexp
Apr 9, 2015
96e9ad9
[react_native] JS files from D1980312: [react_native] Fix webview
andreicoman11 Apr 9, 2015
c29c595
Added random js queue+execution time sampling in react native
Apr 10, 2015
c831328
unify use of password and secureTextEntry for TextInput
Apr 10, 2015
8d64322
Link LinkingIOS in SampleApp
jcgertig Apr 10, 2015
89f5ff4
[ReactNative] Fix suggestions in TextInput when setting value prop
sahrens Apr 10, 2015
7f9ee94
[ReactNative] Don't redbox on flow config errors
sahrens Apr 10, 2015
b1850f8
Implemented response headers when using `XMLHttpRequest`
mikedriver Apr 10, 2015
4616037
[ReactNative] Fix push notifications on iOS7
tadeuzagallo Apr 10, 2015
f5f80da
[ReactNative] Remove bridge retaining cycles
tadeuzagallo Apr 10, 2015
7cd732d
[ReactNative] Pipe logs to server window
frantic Apr 9, 2015
50959dd
[AdsManager|ReactNative] Switch to contextual request pop instead of …
Apr 10, 2015
75d52b0
[ReactNative] Avoid navigator scene renders during transition
Apr 10, 2015
96c47cd
Add the promise library as a dependency
Apr 10, 2015
699a9c3
[ReactNative] Fix focusing of nested Navigators
Apr 11, 2015
26fd24d
Cleanup
nicklockwood Apr 11, 2015
ac94a7f
Escape URL string before creating an NSURL
Apr 12, 2015
8d651a0
[ReactNative] Sort UIExplorer examples
tadeuzagallo Apr 13, 2015
f8beaa5
[ReactNative] Make RCTRootView propage motions
tadeuzagallo Apr 13, 2015
03a54c5
[ReactNative] Reverted D1986572
fkgozali Apr 13, 2015
db45ed4
[ipasize][ReactKit] Begin to ensmallen RCTConvert
swolchok Apr 13, 2015
29696a2
React Native: Fix InteractionManager Race Condition
yungsters Apr 13, 2015
b8d44d3
[ReactNative] Fix logging
frantic Apr 13, 2015
d135da9
React Native: Add String.prototyp.es6 Polyfill
yungsters Apr 13, 2015
569bbaa
React Native: Sync Transforms and Enable Trailing Commas
yungsters Apr 13, 2015
320605e
[react-packager] Update sane to get windows fixes (and others)
Apr 14, 2015
62d7cd6
[ReactNative] allow running JS app server for Android from fbobjc
philikon Apr 14, 2015
5bbb351
[react-packager] Support @nx resolution postfix for assets
Apr 14, 2015
e193a13
[Bridge] `RCT_REMAP_METHOD(js_name, selector)`
ide Apr 14, 2015
f7aeefa
Fix typo in PanResponder documentation
blixt Apr 14, 2015
758dd0d
[react-packager] Add Array.prototype.es6 polyfill
Apr 14, 2015
99bbd4a
Merge branch 'oss-sync/master' into HEAD
vjeux Apr 15, 2015
e362fb2
[ReactNative] Move image asset loading to a queue
fkgozali Apr 15, 2015
7a68691
MapView to support MKPointAnnotation using new attribute annotate in …
ginamdar Apr 15, 2015
4f8b282
Replace ES6Promise with Promise
Apr 15, 2015
75e4e12
[ReactNative] Use a single DisplayLink held by the bridge
tadeuzagallo Apr 15, 2015
970dd8a
Merge branch 'oss-sync/master' into import_everycommit
vjeux Apr 15, 2015
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
27 changes: 27 additions & 0 deletions Examples/SampleApp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# node.js
#
node_modules/
npm-debug.log
82 changes: 64 additions & 18 deletions Examples/UIExplorer/MapViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,44 @@ var {
View,
} = React;

var regionText = {
latitude: '0',
longitude: '0',
latitudeDelta: '0',
longitudeDelta: '0',
}

var MapRegionInput = React.createClass({

propTypes: {
region: React.PropTypes.shape({
latitude: React.PropTypes.number,
longitude: React.PropTypes.number,
latitudeDelta: React.PropTypes.number,
longitudeDelta: React.PropTypes.number,
latitude: React.PropTypes.number.isRequired,
longitude: React.PropTypes.number.isRequired,
latitudeDelta: React.PropTypes.number.isRequired,
longitudeDelta: React.PropTypes.number.isRequired,
}),
onChange: React.PropTypes.func.isRequired,
},

getInitialState: function() {
return {
latitude: 0,
longitude: 0,
latitudeDelta: 0,
longitudeDelta: 0,
region: {
latitude: 0,
longitude: 0,
latitudeDelta: 0,
longitudeDelta: 0,
}
};
},

componentWillReceiveProps: function(nextProps) {
this.setState(nextProps.region);
this.setState({
region: nextProps.region || this.getInitialState().region
});
},

render: function() {
var region = this.state;
var region = this.state.region || this.getInitialState().region;
return (
<View>
<View style={styles.row}>
Expand All @@ -61,6 +72,7 @@ var MapRegionInput = React.createClass({
value={'' + region.latitude}
style={styles.textInput}
onChange={this._onChangeLatitude}
selectTextOnFocus={true}
/>
</View>
<View style={styles.row}>
Expand All @@ -71,6 +83,7 @@ var MapRegionInput = React.createClass({
value={'' + region.longitude}
style={styles.textInput}
onChange={this._onChangeLongitude}
selectTextOnFocus={true}
/>
</View>
<View style={styles.row}>
Expand All @@ -81,6 +94,7 @@ var MapRegionInput = React.createClass({
value={'' + region.latitudeDelta}
style={styles.textInput}
onChange={this._onChangeLatitudeDelta}
selectTextOnFocus={true}
/>
</View>
<View style={styles.row}>
Expand All @@ -91,6 +105,7 @@ var MapRegionInput = React.createClass({
value={'' + region.longitudeDelta}
style={styles.textInput}
onChange={this._onChangeLongitudeDelta}
selectTextOnFocus={true}
/>
</View>
<View style={styles.changeButton}>
Expand All @@ -103,23 +118,29 @@ var MapRegionInput = React.createClass({
},

_onChangeLatitude: function(e) {
this.setState({latitude: parseFloat(e.nativeEvent.text)});
regionText.latitude = e.nativeEvent.text;
},

_onChangeLongitude: function(e) {
this.setState({longitude: parseFloat(e.nativeEvent.text)});
regionText.longitude = e.nativeEvent.text;
},

_onChangeLatitudeDelta: function(e) {
this.setState({latitudeDelta: parseFloat(e.nativeEvent.text)});
regionText.latitudeDelta = e.nativeEvent.text;
},

_onChangeLongitudeDelta: function(e) {
this.setState({longitudeDelta: parseFloat(e.nativeEvent.text)});
regionText.longitudeDelta = e.nativeEvent.text;
},

_change: function() {
this.props.onChange(this.state);
this.setState({
latitude: parseFloat(regionText.latitude),
longitude: parseFloat(regionText.longitude),
latitudeDelta: parseFloat(regionText.latitudeDelta),
longitudeDelta: parseFloat(regionText.longitudeDelta),
});
this.props.onChange(this.state.region);
},

});
Expand All @@ -130,6 +151,8 @@ var MapViewExample = React.createClass({
return {
mapRegion: null,
mapRegionInput: null,
annotations: null,
isFirstLoad: true,
};
},

Expand All @@ -138,8 +161,10 @@ var MapViewExample = React.createClass({
<View>
<MapView
style={styles.map}
onRegionChange={this._onRegionChanged}
onRegionChange={this._onRegionChange}
onRegionChangeComplete={this._onRegionChangeComplete}
region={this.state.mapRegion}
annotations={this.state.annotations}
/>
<MapRegionInput
onChange={this._onRegionInputChanged}
Expand All @@ -149,14 +174,35 @@ var MapViewExample = React.createClass({
);
},

_onRegionChanged(region) {
this.setState({mapRegionInput: region});
_getAnnotations(region) {
return [{
longitude: region.longitude,
latitude: region.latitude,
title: 'You Are Here',
}];
},

_onRegionChange(region) {
this.setState({
mapRegionInput: region,
});
},

_onRegionChangeComplete(region) {
if (this.state.isFirstLoad) {
this.setState({
mapRegionInput: region,
annotations: this._getAnnotations(region),
isFirstLoad: false,
});
}
},

_onRegionInputChanged(region) {
this.setState({
mapRegion: region,
mapRegionInput: region,
annotations: this._getAnnotations(region),
});
},

Expand Down
136 changes: 136 additions & 0 deletions Examples/UIExplorer/PanResponderExample.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* @flow
*/
'use strict';

var React = require('react-native');
var {
StyleSheet,
PanResponder,
View,
} = React;

var CIRCLE_SIZE = 80;
var CIRCLE_COLOR = 'blue';
var CIRCLE_HIGHLIGHT_COLOR = 'green';


var NavigatorIOSExample = React.createClass({

statics: {
title: 'PanResponder Sample',
description: 'Basic gesture handling example',
},

_panResponder: {},
_previousLeft: 0,
_previousTop: 0,
_circleStyles: {},
circle: (null : ?{ setNativeProps(props: Object): void }),

componentWillMount: function() {
this._panResponder = PanResponder.create({
onStartShouldSetPanResponder: this._handleStartShouldSetPanResponder,
onMoveShouldSetPanResponder: this._handleMoveShouldSetPanResponder,
onPanResponderGrant: this._handlePanResponderGrant,
onPanResponderMove: this._handlePanResponderMove,
onPanResponderRelease: this._handlePanResponderEnd,
onPanResponderTerminate: this._handlePanResponderEnd,
});
this._previousLeft = 20;
this._previousTop = 84;
this._circleStyles = {
left: this._previousLeft,
top: this._previousTop,
};
},

componentDidMount: function() {
this._updatePosition();
},

render: function() {
return (
<View
style={styles.container}>
<View
ref={(circle) => {
this.circle = circle;
}}
style={styles.circle}
{...this._panResponder.panHandlers}
/>
</View>
);
},

_highlight: function() {
this.circle && this.circle.setNativeProps({
backgroundColor: CIRCLE_HIGHLIGHT_COLOR
});
},

_unHighlight: function() {
this.circle && this.circle.setNativeProps({
backgroundColor: CIRCLE_COLOR
});
},

_updatePosition: function() {
this.circle && this.circle.setNativeProps(this._circleStyles);
},

_handleStartShouldSetPanResponder: function(e: Object, gestureState: Object): boolean {
// Should we become active when the user presses down on the circle?
return true;
},

_handleMoveShouldSetPanResponder: function(e: Object, gestureState: Object): boolean {
// Should we become active when the user moves a touch over the circle?
return true;
},

_handlePanResponderGrant: function(e: Object, gestureState: Object) {
this._highlight();
},
_handlePanResponderMove: function(e: Object, gestureState: Object) {
this._circleStyles.left = this._previousLeft + gestureState.dx;
this._circleStyles.top = this._previousTop + gestureState.dy;
this._updatePosition();
},
_handlePanResponderEnd: function(e: Object, gestureState: Object) {
this._unHighlight();
this._previousLeft += gestureState.dx;
this._previousTop += gestureState.dy;
},
});

var styles = StyleSheet.create({
circle: {
width: CIRCLE_SIZE,
height: CIRCLE_SIZE,
borderRadius: CIRCLE_SIZE / 2,
backgroundColor: CIRCLE_COLOR,
position: 'absolute',
left: 0,
top: 0,
},
container: {
flex: 1,
paddingTop: 64,
},
});

module.exports = NavigatorIOSExample;
27 changes: 26 additions & 1 deletion Examples/UIExplorer/TextInputExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var styles = StyleSheet.create({
flex: 1,
},
label: {
width: 80,
width: 120,
justifyContent: 'flex-end',
flexDirection: 'row',
marginRight: 10,
Expand Down Expand Up @@ -311,4 +311,29 @@ exports.examples = [
);
}
},
{
title: 'Clear and select',
render: function () {
return (
<View>
<WithLabel label="clearTextOnFocus">
<TextInput
placeholder="text is cleared on focus"
value="text is cleared on focus"
style={styles.default}
clearTextOnFocus={true}
/>
</WithLabel>
<WithLabel label="selectTextOnFocus">
<TextInput
placeholder="text is selected on focus"
value="text is selected on focus"
style={styles.default}
selectTextOnFocus={true}
/>
</WithLabel>
</View>
);
}
},
];
Loading