1797 Commits

Author SHA1 Message Date
Luke
de27f1db54 fix exception when ES6 class with no propTypes defined before calling requireNativeComponent
Summary:
Closes https://github.com/facebook/react-native/pull/1260
Github Author: Luke <kejinlu@gmail.com>

Test Plan: Created `class Foo extends React.Component` and made sure error messages were good.
2015-05-18 11:47:42 -08:00
Spencer Ahrens
a1193b7a93 Update CONTRIBUTING.md 2015-05-18 12:25:09 -07:00
Alex Kotliarskyi
214ae2062c Fix react-native-cli code formatting 2015-05-18 10:25:17 -07:00
Alexander Kotliarskyi
f2b76566f3 Merge pull request #1293 from skv-headless/confirm-init-overwrite
Ask confirmation on init command
2015-05-18 10:24:19 -07:00
Alexsander Akers
f2ffaed4ca Merge pull request #1327 from a2/Update_Mon_18_May
Updates from Mon 18 May
2015-05-18 16:47:09 +01:00
Andrei Coman
03905e69f4 [react_native] JS files from D2079609: [react_native] Use email type for login field 2015-05-18 07:36:39 -08:00
Georgiy Kassabli
6ef7eaf663 Added accessibility traits support to View class 2015-05-18 07:30:29 -08:00
Alexsander Akers
7219fcefc6 Updates from Mon 18 May 2015-05-18 16:29:47 +01:00
Tadeu Zagallo
eedb880f6e [ReactNative] Bump package.json version to 0.4.4 2015-05-17 19:05:14 -08:00
Tadeu Zagallo
a4e89d71a3 [ReactNative] Fix RCTBatchedBridge main thread invalidation
Summary:
D2052669 introduced a block for objects that had to be invalidated on the main
thread, but after the JS thread objects, but the block was being dispatched on
the JS thread.

@public

Test Plan:
I added `RCTAssertMainThread()` to the `mainThreadInvalidate` block, it was
crashing on reload, but now it should work as expected.
2015-05-17 18:27:20 -08:00
Brent Vatne
424d1318c8 [Docs] Linking Libraries fix site->side, prefer only to just 2015-05-17 18:41:40 -07:00
Amjad Masad
407d8d4cf6 [react-native] Update jest to get perf bugfix 2015-05-17 02:51:35 -08:00
Dmitry Soshnikov
545edba913 [jest] Update to v0.4.4 2015-05-17 00:20:42 -08:00
skv
5a83ffab94 ask confirmation on init command
if directory already exist
2015-05-16 22:23:19 +03:00
Christopher Chedeau
d63eac4014 Merge pull request #1312 from vjeux/Updates_Sat_16_May
Updates sat 16 may
2015-05-16 10:14:17 -07:00
Christopher Chedeau
367638053a Updates from Sat 16 May 2015-05-16 10:07:17 -07:00
James Ide
08d30e751b [ActivityIndicator] Add the onLayout prop to the outer container view
Summary:
ActivityIndicator was forwarding all of its props except `style` to the inner native view. This meant that onLayout would report a zero-sized frame that was relative to the wrapper view instead of the parent of the ActivityIndicator.

This diff adds `onLayout` to the wrapper view instead of the native view.

In general, all components that forward props need to be audited in this manner.

Closes https://github.com/facebook/react-native/pull/1292
Github Author: James Ide <ide@jameside.com>

Test Plan: `<ActivityIndicator onLayout={...} />` reports the size of the spinner plus a position relative to its parent view.
2015-05-15 18:08:32 -08:00
Brent Vatne
c668fd5be0 [ReactNative] Add "RCTNativeAppEventEmitter"
Summary:
As mentioned in #906, [in the docs it mentions sending native app events](http://facebook.github.io/react-native/docs/nativemodulesios.html#sending-events-to-javascript) eg: calendar event reminder received, through the `RCTNativeAppEventEmitter`, but the JS module for that is missing. This adds it - it's nothing more than an instance of `EventEmitter`, just like [RCTDeviceEventEmitter](https://github.com/facebook/react-native/blob/master/Libraries/Device/RCTDeviceEventEmitter.js).
Closes https://github.com/facebook/react-native/pull/918
Github Author: Brent Vatne <brent.vatne@madriska.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-05-15 16:57:18 -08:00
James Ide
5f841a950e [Setup] Remove AdSupport from the list of libraries linked by default
Summary:
Many apps don't need AdSupport, especially not when people are making a sample app to learn React. Apps that do want it can link it in like any other library.

Fixes #1303, see the discussion there.
Closes https://github.com/facebook/react-native/pull/1305
Github Author: James Ide <ide@jameside.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-05-15 15:53:23 -08:00
Amjad Masad
64c0bb0bd4 [react-native] Fix source map issue with virtual modules 2015-05-15 15:49:11 -08:00
Christopher Chedeau
723e988416 [ReactNative] Redbox if JSC syntax errors 2015-05-15 15:33:17 -08:00
Christopher Chedeau
7a1c52c8e9 0.4.4 2015-05-15 15:59:55 -07:00
Christopher Chedeau
0fbe091304 Merge pull request #1301 from vjeux/Updates_Fri_15_May
Updates fri 15 may
2015-05-15 15:37:54 -07:00
Christopher Chedeau
b5de997166 Updates from Fri 15 May 2015-05-15 15:23:28 -07:00
Amjad Masad
d9b7e63e47 [react-native] Use trailing commas transform
Summary:
@public
Apparently trailing commas transform isn't exported by react-tools. We need to pull it out manually. This is not so clean but we're swtching to babel very shortly.

Test Plan:
* npm start
* write `foo(a,b,c,)` in some file
* request that file in the browser and make sure that trailing comma is gone
2015-05-15 14:11:55 -08:00
Zhao Han
40da7bb835 Add more documentation in ListViewDataSource
Summary:
ListViewDataSource's default data extractor can actually expect another data form:

`{ sectionID_1: [ <rowData1>, <rowData2>, ... ], ... }`
Closes https://github.com/facebook/react-native/pull/1285
Github Author: Zhao Han <cx.chenghai+github@gmail.com>

Test Plan: Changed the ListViewExample to make sure all three formats work.
2015-05-15 13:47:43 -08:00
James Ide
d72045932e [TextInput] Add onLayout to TextInput, forwarding it to the native views
Summary:
`TextInput` does not automatically forward all props using the spread operator so we need to explicitly forward the `onLayout` prop.

Closes https://github.com/facebook/react-native/pull/1296
Github Author: James Ide <ide@jameside.com>

Test Plan:
 Mount a TextInput component with an `onLayout` prop and see that the callback handler is invoked with the TextInput's frame.
2015-05-15 11:52:23 -08:00
Nick Lockwood
d27e6fa7f8 Fixed RCTWebSocket and chrome debugging in OSS 2015-05-15 11:37:07 -08:00
Christopher Chedeau
2d9990ca2a [ReactNative] Better error message when passing an Animated to a View 2015-05-15 11:01:46 -08:00
Spencer Ahrens
4771806c44 [ReactNative] Fix some mount callback issues 2015-05-15 10:59:09 -08:00
Christopher Chedeau
e33fef8e42 Merge pull request #405 from JoeStanton/new-library-cmd
[CLI] New Library Generator
2015-05-15 10:58:40 -07:00
Joe Stanton
857c30b502 Stylistic cleanup 2015-05-15 17:08:21 +01:00
Joe Stanton
243ef68199 Update search paths to reflect new project structure 2015-05-15 14:10:06 +01:00
Joe Stanton
ea8447e1c5 Upgrade sample to the new macros 2015-05-15 13:59:46 +01:00
Joe Stanton
0312c30a73 Duplicate the name validation for now 2015-05-15 09:21:38 +01:00
Joe Stanton
396439bf86 Added react-native new-library command 2015-05-15 09:17:27 +01:00
James Ide
80814f643f Merge pull request #1289 from umhan35/patch-4
Add SegmentedControlIOS documentation to website
2015-05-14 20:35:16 -07:00
Zhao Han
1c05aff424 Add SegmentedControlIOS documentation to website 2015-05-14 22:22:31 -05:00
James Ide
2497c02e38 [RCTBridge] Have RCTBridge.loading return RCTBatchedBridge.loading
Summary:
The parent RCTBridge no longer tracks the JS loading since that has been handed off to the RCTBatchedBridge. To make the `loading` property accurate again, just expose the batch bridge's loading property from the parent bridge (note: I didn't make it KVO-compliant).

Fixes #1199
Closes https://github.com/facebook/react-native/pull/1200
Github Author: James Ide <ide@jameside.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-05-14 16:00:18 -08:00
Tadeu Zagallo
e467fb7202 [ReactNative] Add console.profile hooks to systrace
Summary:
Add console.profile sync hooks compliant with the chrome API
https://developer.chrome.com/devtools/docs/console-api#consoleprofilelabel

@public

Test Plan:
Add a `console.profile()` and a `console.profileEnd()` in the JavaScript,
and record a systrace-like profile via DevMenu
2015-05-14 15:59:20 -08:00
Christopher Chedeau
aa439b7e39 Merge pull request #1286 from hansonw/master
Fix jsdocs for multi-line ES6-style methods
2015-05-14 16:51:17 -07:00
Christopher Chedeau
623eb05bf6 0.4.3 2015-05-14 16:44:16 -07:00
Christopher Chedeau
d2eaa51509 0.4.2 2015-05-14 16:42:26 -07:00
hansonw
97aad167a6 Fix jsdocs for multi-line ES6-style methods
Summary:
The function definition and body can be in different places for multi-line declarations, so the docblock might not get pulled in. None of the existing docs seem to be affected, but putting up the fix for posterity.

Test Plan:
I modified `AlertIOS.alert` (in Libraries/Utilties/AlertIOS.js) to actually have a docblock, and ran `website/publish.sh` (with the push bit commented out). The added doc doesn't get picked up with the current code, but it does with the fix.
2015-05-14 16:34:55 -07:00
Christopher Chedeau
1f8b97aeff Merge pull request #1283 from vjeux/Updates_Thu_14_May_3
Updates Thu 14 May
2015-05-14 15:39:25 -07:00
Christopher Chedeau
da1aa962e2 Updates from Thu 14 May 2015-05-14 15:21:03 -07:00
Tadeu Zagallo
22fb03d7e0 [ReactNative] Fix UIExplorer missing reference to RCTWebSocket 2015-05-14 14:18:13 -08:00
Tadeu Zagallo
9c8e085677 [ReactNative] Fix Movies and SampleApp missing reference to RCTWebSocket 2015-05-14 14:15:23 -08:00
Georgiy Kassabli
d2f79d835d Fixing misprint in RCText.m 2015-05-14 13:02:47 -08:00
Nick Lockwood
7c3070628a Fixed infinite #clowntown error loop 2015-05-14 12:19:15 -08:00