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

Tue 23 jun #1728

Closed
wants to merge 60 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
5793f5c
[AnimationExperimental] Fixed CATransaction completion block invoke i…
Shuangzuan Jun 16, 2015
0a87579
[Navigator]: Allow developer to observe the focus change events from …
Jun 16, 2015
7dd2dd7
[Docs] Fixed word auto-correction in TextInput.js
prathamesh-sonpatki Jun 16, 2015
477360b
[react-packager] Make it safe to include files without a newline at t…
Jun 16, 2015
a331bb7
[RFC] Add ScrollView bounded height explanation
pcottle Jun 16, 2015
8e07b39
Update promise to 7.0.3
Jun 17, 2015
d83ee3b
Better text background behavior
nicklockwood Jun 17, 2015
1718b17
[ReactNative] Fix extern on RCTProfile.h
tadeuzagallo Jun 17, 2015
6573d25
Improve test architecture so failures don't crash the simulator
nicklockwood Jun 17, 2015
92d9853
[ReactNative] Refactor BatchedBridge and MessageQueue
tadeuzagallo Jun 17, 2015
51e5794
[ActivityIndicator] Specify a width
ide Jun 17, 2015
6e3472d
[react_native] JS files from D2164068: support filtering by mimeType …
foghina Jun 17, 2015
a48e9b4
[WebView] Exposed scalesPageToFit UIWebView property
Jun 17, 2015
a885efe
[ReactNative] Add more markers and fix FPS graph
tadeuzagallo Jun 17, 2015
e78b8c4
[oss][react-native] unbreak NavigationEventEmitter-test
Jun 17, 2015
3fa8ec0
[ReactNative] Change text input underline color
andreicoman11 Jun 17, 2015
3029511
[react_native] JS files from D2163804: [react_native] Add native …
astreet Jun 18, 2015
58d01c7
[RN Inspector] : fix CSS not to use view overflow which is not suppor…
olinotteghem Jun 18, 2015
dc39316
[RN Events] clear disk cache on logout
sahrens Jun 18, 2015
5263b23
Renamed RCTDataManager to RCTNetworking
nicklockwood Jun 18, 2015
7d62b60
[ReactNative] Fix 32 bit check compile error
sahrens Jun 19, 2015
4ddfc14
Fixed stickers
nicklockwood Jun 19, 2015
9998337
[react-packager] Add tests to ensure we return all dependency types
Jun 19, 2015
cf0e40a
[ReactNative] Fix MessageQueue-test on open source
tadeuzagallo Jun 18, 2015
c8c254c
Changed methodQueue to a property
nicklockwood Jun 19, 2015
0116abe
[react_native] JS files from D2164109: [react_native] Fix JS erro…
astreet Jun 19, 2015
6cf570d
[ReactNative] Fix retain cycle on DevMenu
tadeuzagallo Jun 19, 2015
caffd60
[React Native] Update description on RCTText
Jun 19, 2015
634cdfb
Removed duplicate key registration bug
nicklockwood Jun 19, 2015
4d97c01
[ReactNative] Don't activate Chrome when debugger is already open
frantic Jun 19, 2015
080d3b9
[ReactNative] Add PerformanceLogger to measure TTI
tadeuzagallo Jun 19, 2015
0fec355
[react-packager] Cache based on options, not url
Jun 19, 2015
93e98da
[Navigator]: Add a getter to get the current route that is focused fr…
Jun 19, 2015
5c1ac2a
[ReactNative] Block native from becoming js responder
andreicoman11 Jun 19, 2015
2d4055e
[react-packager] Rewrite dependency graph (support node_modules, spee…
Jun 20, 2015
2845e78
[react-packager] Cache in-memory file lookups (~200ms win on file cha…
Jun 20, 2015
5aee4ce
[ReactNative][easy] fix server 500 response typo
Jun 20, 2015
6e568ee
[SampleApp] Remove $(SRCROOT) from INFOPLIST_FILE to fix agvtool
Jun 22, 2015
c9f193c
[ReactNative] Stop build tests on non-test builds
tadeuzagallo Jun 22, 2015
90aad9a
Add support for selecting media from library
dvcrn Jun 22, 2015
2cb0546
Added support for React installed in the application via Cocoapods
potiuk Jun 22, 2015
9228873
[ReactNative] Fix racing conditions on reload
tadeuzagallo Jun 22, 2015
22ea669
[react_native] JS files from D2172754: support setting the cursor pos…
foghina Jun 22, 2015
457fca4
Allow live reload even on errors.
RubenSandwich Jun 22, 2015
eda44ed
Fixed Cmd-R shortcut on iOS 9
nicklockwood Jun 22, 2015
fccea2f
Replace bluebird with promise
Jun 22, 2015
972b546
[Flow] Fix or suppress errors in react-native for Flow v0.13.0
gabelevi Jun 22, 2015
1429b78
[ReactNative] Ignore bad inputs to parseErrorStack
frantic Jun 22, 2015
7f54506
<Navigator />: Fix the getter for `navigationContext`.
Jun 22, 2015
a8011f2
[React Native][Packager] allow --assetRoots to be relative paths
philikon Jun 22, 2015
3d6ffcf
[ReactNative][Profiler] Fix initialize extra call + add popup
tadeuzagallo Jun 22, 2015
5b476d0
[ReactNative] Fix manual ListView loading
sahrens Jun 22, 2015
8663945
Fixed AsyncLocalStorage bug
nicklockwood Jun 22, 2015
d105ae7
[AdsManager] Fix Navigation focus events for logging
Jun 22, 2015
0c38229
[Navigator] Fix overswipe to -1, move guard
Jun 22, 2015
bd3f976
[ReactNative] Fix alert out of main thread
tadeuzagallo Jun 23, 2015
9ed2bd6
Fixed nil safety issue in RKSounds
nicklockwood Jun 23, 2015
1e66e5f
Fixed border bug on events dashboard
nicklockwood Jun 23, 2015
4750856
[ReactNative] resizeMode is not a nativeOnly prop
Jun 23, 2015
cf9afaf
Updates from Tue 23 Jun
vjeux Jun 23, 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
5 changes: 3 additions & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-2]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-2]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy

[version]
0.12.0
2 changes: 2 additions & 0 deletions Examples/Movies/SearchScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ var SearchScreen = React.createClass({
var apiKey = API_KEYS[this.state.queryNumber % API_KEYS.length];
if (query) {
return (
// $FlowFixMe(>=0.13.0) - pageNumber may be null or undefined
API_URL + 'movies.json?apikey=' + apiKey + '&q=' +
encodeURIComponent(query) + '&page_limit=20&page=' + pageNumber
);
} else {
// With no query, load latest movies
return (
// $FlowFixMe(>=0.13.0) - pageNumber may be null or undefined
API_URL + 'lists/movies/in_theaters.json?apikey=' + apiKey +
'&page_limit=20&page=' + pageNumber
);
Expand Down
4 changes: 2 additions & 2 deletions Examples/SampleApp/SampleApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../React/**",
);
INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist";
INFOPLIST_FILE = "iOS/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = SampleApp;
Expand All @@ -616,7 +616,7 @@
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../React/**",
);
INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist";
INFOPLIST_FILE = "iOS/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = SampleApp;
Expand Down
1 change: 1 addition & 0 deletions Examples/UIExplorer/DatePickerIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ var Heading = React.createClass({
}
});

exports.displayName = (undefined: ?string);
exports.title = '<DatePickerIOS>';
exports.description = 'Select dates and times using the native UIDatePicker.';
exports.examples = [
Expand Down
1 change: 1 addition & 0 deletions Examples/UIExplorer/ImageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var {

var ImageCapInsetsExample = require('./ImageCapInsetsExample');

exports.displayName = (undefined: ?string);
exports.framework = 'React';
exports.title = '<Image>';
exports.description = 'Base component for displaying different types of images.';
Expand Down
1 change: 1 addition & 0 deletions Examples/UIExplorer/MapViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ var styles = StyleSheet.create({
},
});

exports.displayName = (undefined: ?string);
exports.title = '<MapView>';
exports.description = 'Base component to display maps';
exports.examples = [
Expand Down
25 changes: 25 additions & 0 deletions Examples/UIExplorer/Navigator/NavigationBarSample.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,31 @@ function newRandomRoute() {

var NavigationBarSample = React.createClass({

componentWillMount: function() {
var navigator = this.props.navigator;

var callback = (event) => {
console.log(
`NavigationBarSample : event ${event.type}`,
{
route: JSON.stringify(event.data.route),
target: event.target,
type: event.type,
}
);
};

// Observe focus change events from this component.
this._listeners = [
navigator.navigationContext.addListener('willfocus', callback),
navigator.navigationContext.addListener('didfocus', callback),
];
},

componentWillUnmount: function() {
this._listeners && this._listeners.forEach(listener => listener.remove());
},

render: function() {
return (
<Navigator
Expand Down
29 changes: 29 additions & 0 deletions Examples/UIExplorer/Navigator/NavigatorExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ var TabBarExample = React.createClass({
render: function() {
return (
<Navigator
ref={this._setNavigatorRef}
style={styles.container}
initialRoute={{ message: "First Scene", }}
renderScene={this.renderScene}
Expand All @@ -145,6 +146,34 @@ var TabBarExample = React.createClass({
);
},


componentWillUnmount: function() {
this._listeners && this._listeners.forEach(listener => listener.remove());
},

_setNavigatorRef: function(navigator) {
if (navigator !== this._navigator) {
this._navigator = navigator;

if (navigator) {
var callback = (event) => {
console.log(
`TabBarExample: event ${event.type}`,
{
route: JSON.stringify(event.data.route),
target: event.target,
type: event.type,
}
);
};
// Observe focus change events from the owner.
this._listeners = [
navigator.navigationContext.addListener('willfocus', callback),
navigator.navigationContext.addListener('didfocus', callback),
];
}
}
},
});

var styles = StyleSheet.create({
Expand Down
1 change: 1 addition & 0 deletions Examples/UIExplorer/PickerIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ var PickerExample = React.createClass({
},
});

exports.displayName = (undefined: ?string);
exports.title = '<PickerIOS>';
exports.description = 'Render lists of selectable options with UIPickerView.';
exports.examples = [
Expand Down
1 change: 1 addition & 0 deletions Examples/UIExplorer/ProgressViewIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ var ProgressViewExample = React.createClass({
},
});

exports.displayName = (undefined: ?string);
exports.framework = 'React';
exports.title = 'ProgressViewIOS';
exports.description = 'ProgressViewIOS';
Expand Down
1 change: 1 addition & 0 deletions Examples/UIExplorer/ScrollViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var {
Image
} = React;

exports.displayName = (undefined: ?string);
exports.title = '<ScrollView>';
exports.description = 'Component that enables scrolling through child components';
exports.examples = [
Expand Down
87 changes: 38 additions & 49 deletions Examples/UIExplorer/TextExample.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var {
var Entity = React.createClass({
render: function() {
return (
<Text style={styles.entity}>
<Text style={{fontWeight: '500', color: '#527fe4'}}>
{this.props.children}
</Text>
);
Expand All @@ -34,30 +34,39 @@ var Entity = React.createClass({

var AttributeToggler = React.createClass({
getInitialState: function() {
return {fontWeight: '500', fontSize: 15};
return {fontWeight: 'bold', fontSize: 15};
},
toggleWeight: function() {
this.setState({
fontWeight: this.state.fontWeight === 'bold' ? 'normal' : 'bold'
});
},
increaseSize: function() {
this.setState({
fontSize: this.state.fontSize + 1
});
},
render: function() {
var curStyle = {fontSize: this.state.fontSize};
var curStyle = {fontWeight: this.state.fontWeight, fontSize: this.state.fontSize};
return (
<Text>
<View>
<Text style={curStyle}>
Tap the controls below to change attributes.
</Text>
<Text>
See how it will even work on{' '}
<Text style={curStyle}>
this nested text
</Text>
<Text onPress={this.increaseSize}>
{'>> Increase Size <<'}
</Text>
<Text>See how it will even work on <Text style={curStyle}>this nested text</Text></Text>
</Text>
</Text>
<Text
style={{backgroundColor: '#ffaaaa', marginTop: 5}}
onPress={this.toggleWeight}>
Toggle Weight
</Text>
<Text
style={{backgroundColor: '#aaaaff', marginTop: 5}}
onPress={this.increaseSize}>
Increase Size
</Text>
</View>
);
}
});
Expand Down Expand Up @@ -206,6 +215,12 @@ exports.examples = [
render: function() {
return (
<View>
<Text>
auto (default) - english LTR
</Text>
<Text>
أحب اللغة العربية auto (default) - arabic RTL
</Text>
<Text style={{textAlign: 'left'}}>
left left left left left left left left left left left left left left left
</Text>
Expand Down Expand Up @@ -282,43 +297,21 @@ exports.examples = [
description: 'backgroundColor is inherited from all types of views.',
render: function() {
return (
<View style={{backgroundColor: 'yellow'}}>
<Text>
Yellow background inherited from View parent,
<Text style={{backgroundColor: '#ffaaaa'}}>
{' '}red background,
<Text style={{backgroundColor: '#aaaaff'}}>
{' '}blue background,
<Text>
{' '}inherited blue background,
<Text style={{backgroundColor: '#aaffaa'}}>
{' '}nested green background.
</Text>
<Text style={{backgroundColor: 'yellow'}}>
Yellow container background,
<Text style={{backgroundColor: '#ffaaaa'}}>
{' '}red background,
<Text style={{backgroundColor: '#aaaaff'}}>
{' '}blue background,
<Text>
{' '}inherited blue background,
<Text style={{backgroundColor: '#aaffaa'}}>
{' '}nested green background.
</Text>
</Text>
</Text>
</Text>
</View>
);
},
}, {
title: 'containerBackgroundColor attribute',
render: function() {
return (
<View style={{backgroundColor: 'yellow'}}>
<View style={{flexDirection: 'row', position: 'absolute', height: 80}}>
<View style={{backgroundColor: '#ffaaaa', width: 140}} />
<View style={{backgroundColor: '#aaaaff', width: 140}} />
</View>
<Text style={styles.backgroundColorText}>
Default containerBackgroundColor (inherited) + backgroundColor wash
</Text>
<Text style={[
styles.backgroundColorText,
{marginBottom: 5, containerBackgroundColor: 'transparent'}]}>
{"containerBackgroundColor: 'transparent' + backgroundColor wash"}
</Text>
</View>
</Text>
);
},
}, {
Expand Down Expand Up @@ -346,8 +339,4 @@ var styles = StyleSheet.create({
marginBottom: 0,
backgroundColor: 'rgba(100, 100, 100, 0.3)'
},
entity: {
fontWeight: '500',
color: '#527fe4',
},
});
1 change: 1 addition & 0 deletions Examples/UIExplorer/TextInputExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ var styles = StyleSheet.create({
},
});

exports.displayName = (undefined: ?string);
exports.title = '<TextInput>';
exports.description = 'Single and multi-line text inputs.';
exports.examples = [
Expand Down
1 change: 1 addition & 0 deletions Examples/UIExplorer/TouchableExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var {
View,
} = React;

exports.displayName = (undefined: ?string);
exports.title = '<Touchable*> and onPress';
exports.examples = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0700"
version = "1.3">
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
Expand All @@ -22,10 +22,10 @@
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "004D289D1AAF61C70097A701"
Expand All @@ -36,10 +36,10 @@
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "143BC5941B21E3E100462512"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,12 @@ @implementation IntegrationTestsTests
- (void)setUp
{
#if __LP64__
#error Tests should be run on 32-bit device simulators (e.g. iPhone 5)
RCTAssert(false, @"Tests should be run on 32-bit device simulators (e.g. iPhone 5)");
#endif

NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
RCTAssert(version.majorVersion == 8 || version.minorVersion == 3, @"Tests should be run on iOS 8.3, found %zd.%zd.%zd", version.majorVersion, version.minorVersion, version.patchVersion);
_runner = RCTInitRunnerForApp(@"Examples/UIExplorer/UIExplorerIntegrationTests/js/IntegrationTestsApp");

// If tests have changes, set recordMode = YES below and run the affected
// tests on an iPhone5, iOS 8.3 simulator.
_runner.recordMode = NO;
}

#pragma mark Logic Tests
Expand All @@ -53,8 +49,7 @@ - (void)testTheTester_waitOneFrame
expectErrorBlock:nil];
}

// TODO: this seems to stall forever - figure out why
- (void)DISABLED_testTheTester_ExpectError
- (void)testTheTester_ExpectError
{
[_runner runTest:_cmd
module:@"IntegrationTestHarnessTest"
Expand Down Expand Up @@ -91,12 +86,9 @@ - (void)testPromises

- (void)testSimpleSnapshot
{
// If tests have changes, set recordMode = YES below and re-run
_runner.recordMode = NO;
[_runner runTest:_cmd module:@"SimpleSnapshotTest"];
}

- (void)testZZZ_NotInRecordMode
{
RCTAssert(_runner.recordMode == NO, @"Don't forget to turn record mode back to NO before commit.");
}

@end
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading