Commit Graph

14431 Commits

Author SHA1 Message Date
Za1batsu 6f5534eeea Fixed broken image link
Original link to image for EmbeddedAppContainerViewExample.png failed. Fixed link to load same image. Did not touch source code.
2015-03-31 18:57:25 -07:00
daviskoh 0ca3136371 Bugfix/require module regexp
Summary:
Resolves https://github.com/facebook/react-native/issues/316. Also updated the spec for the Haste Dependency Resolver. Not sure if these changes are the ones desired so feedback would be welcome!
Closes https://github.com/facebook/react-native/pull/368
Github Author: daviskoh <koh.davis.0@gmail.com>

Test Plan: ./runJestTests
2015-03-31 17:37:39 -08:00
Kevin Gozali bb9c647c2b [ReactNative] RCTView's shadowOffset is of float type, not CGFloat 2015-03-31 17:18:20 -08:00
Jordanna Kwok 6870c27283 Fix WebView automaticallyAdjustContentInsets error
Summary:
WebView component's automaticallyAdjustContentInsets prop should be type BOOL. Fixes #251.
Closes https://github.com/facebook/react-native/pull/314
Github Author: Jordanna Kwok <jordannakwok@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-03-31 17:17:49 -08:00
Jiajie Zhu 571ade3ffc [react-native] map view - add onTouch** props 2015-03-31 16:52:49 -08:00
Ben Alpert b2fc956858 [react-native] Fix documentation extraction for View 2015-03-31 16:20:14 -08:00
Alex Kotliarskyi 9e931e9d36 [ReactNative] Add few hints in the UI 2015-03-31 16:15:40 -08:00
Charlie Cheever 774442efd2 Adding `scrollWithoutAnimationTo` method for ScrollViews
Summary:
Implementing the consensus approach from the comments on
this PR:
https://github.com/facebook/react-native/pull/486

We use a boolean flag in the Obj-C code to determine whether
to animate or not, and then provide two public JS functions
that call the Obj-C with or without the flag.
Closes https://github.com/facebook/react-native/pull/509
Github Author: Charlie Cheever <ccheever@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-03-31 16:11:40 -08:00
tako-black 80baec3bb6 change words 2015-04-01 08:17:13 +09:00
James Ide 2f00cb05bd [ScrollView] Add "bounces" property to ScrollView propTypes
Summary:
The `bounces` property lets you disable rubber-banding. It was already exposed on the native side so this diff is just documenting it in JS.
Closes https://github.com/facebook/react-native/pull/264
Github Author: James Ide <ide@jameside.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-03-31 15:15:17 -08:00
Janic Duplessis 8d7b6d9a99 Fix a crash in RCTAsyncLocalStorage when the value is not a string.
Summary:
When you forget to pass the value parameter to AsyncStorage.setItem the entire app would crash instead of showing a useful error message. The problem was that the error function used in the file expected a dictionary but was passed the value of the key which caused the crash.
Closes https://github.com/facebook/react-native/pull/535
Github Author: Janic Duplessis <janicduplessis@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-03-31 15:09:05 -08:00
Christopher Chedeau c82893be8a [ReactNative] Remove global MutationObserver to fix Bluebird feature detection 2015-03-31 15:07:17 -08:00
Jiajie Zhu a0998abd19 [catalyst] fix typo 2015-03-31 14:57:45 -08:00
Spencer Ahrens e90ede3ce2 Merge pull request #317 from jcouyang/typos
fix typos, wrong closing tags
2015-03-31 15:20:38 -07:00
Christopher Chedeau 99b2a10afc Merge pull request #552 from andrewsardone/aps-embedded-app
Improve EmbeddedApp.md docs wrt location of ReactComponent (also minor formatting)
2015-03-31 14:45:45 -07:00
Andrew Sardone 2536716727 Fix some pissing a’s and the’s 2015-03-31 17:41:59 -04:00
Andrew Sardone 539ff6476a Fix some ‘CocoaPods’ capitalization 2015-03-31 17:40:59 -04:00
Amjad Masad 23e992a0a5 [react-packager] check-in bluebird 2015-03-31 13:35:18 -08:00
Andrew Sardone 1c3dd29c92 Tweak some concluding EmbeddedApp language 2015-03-31 17:34:09 -04:00
Andrew Sardone 3a6e4305ca Add instructions for pre-bundled JS in EmbeddedApp 2015-03-31 17:34:09 -04:00
Andrew Sardone 2ec88bdd8b Tweak copy around adding an outlet for ReactView 2015-03-31 17:34:09 -04:00
Andrew Sardone 5dac2cb093 Add concluding statement about React behind a UIView 2015-03-31 17:34:08 -04:00
Andrew Sardone 67a2790521 Tweak formatting to note class names in code blocks
I think this helps identify classes and code files as opposed to
emphasized prose.
2015-03-31 17:34:08 -04:00
Andrew Sardone 47f3a77227 Tweak some formatting of example index.ios.js 2015-03-31 17:34:08 -04:00
Andrew Sardone f3ddef0ff3 Move ReactComponent out of Pods directory in EmbeddableApp
It doesn’t seem like a good practice to tell people to create their custom
ReactComponent directory inside of the Pods/ directory. The Pods/ directory
should be limited to CocoaPods installed content, and it’s not even
accepted across the board to [check this stuff into git][1]

Therefore, let’s tune the EmbeddableApp tutorial to instruct users to
create a ReactComponent directory at the root of their project. From there,
we’ll start the development server packager to source that directory as
a JS files root. This change also improves starting this packager server,
proxying the command through npm.

[1]: 5883804e6c/Objective-C.gitignore (L20-L26)
2015-03-31 17:34:08 -04:00
Andrew Sardone 48bcbecf8c Set demo script to 'use strict' for EmbeddedApp 2015-03-31 17:34:08 -04:00
Andrew Sardone af8edb8e40 Add overview to ‘Create Your React Native App’ section
Hopefully this helps people how simple the process is!
2015-03-31 17:34:08 -04:00
Andrew Sardone c07953a37e Remove --verbose flag from `pod install`
It might be too chatty for people just starting out, but I can see why
people might want it.
2015-03-31 17:34:08 -04:00
Andrew Sardone cfba63edd4 Add intro explaining embedding React in existing app 2015-03-31 17:34:08 -04:00
Amjad Masad c9d4dd3695 [react-native] v0.3.1 2015-03-31 13:28:44 -08:00
Ben Alpert b82de1e0d4 Merge pull request #551 from jungchris/patch-1
Minor update README.md - 'Extensibility' Section for iOS code (callback)
2015-03-31 14:05:40 -07:00
Christopher Chedeau 427d902e48 Support .ios.js examples 2015-03-31 14:05:27 -07:00
Chris Jungmann 3ad16b96f1 Update README.md
Removed an extra bracket and line end "];" in the callback of the processString method.
2015-03-31 14:43:08 -06:00
Tadeu Zagallo 1e2d57122e Merge pull request #550 from orta/patch-1
Use correct capitalisation in CocoaPods
2015-03-31 21:20:03 +01:00
Orta f18493400c Use correct capitalisation in CocoaPods 2015-03-31 16:14:45 -04:00
James Ide f506d95cda [Pod] Preserve header directory structure
Summary:
The React code has relative imports like `#import "../React/Base/Layout.h"`. CocoaPods by default flattens the header files so they're all in a single directory, but specifying `header_mappings_dir` in the podspec preserves the directory structure.
Closes https://github.com/facebook/react-native/pull/508
Github Author: James Ide <ide@jameside.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-03-31 12:01:32 -08:00
James Ide fc8f2570f6 [Touchable] Change default `activeOpacity` to 0.2 to match iOS 2015-03-31 12:52:15 -07:00
Christopher Chedeau 115b2a3fde fix ../ 2015-03-31 12:31:37 -07:00
Christopher Chedeau a4a551c571 Add examples at the end of the doc pages 2015-03-31 12:28:53 -07:00
Ben Alpert d75bd44e27 [react-native] Bring React.render behavior in line with web 2015-03-31 10:52:42 -08:00
Colin Ramsay 4b4e8ecc9b Expose html prop on WebView
Summary:
Allows setting of HTML directly on webview to support #506. This is a starting point, and feedback/improvement is requested.

1. if `startInLoadingState` is true, the HTML content will never show since the load event never fires

2. Neither html nor url are set as required props any more
Closes https://github.com/facebook/react-native/pull/542
Github Author: Colin Ramsay <colinramsay@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-03-31 10:09:04 -08:00
Cspeisman 50dc709f01 missing '.' in ListView.DataSource example
Summary:
The `ListView.DataSource` example is missing a period. Previously looked like a method i.e.` ListViewDataSource`
Closes https://github.com/facebook/react-native/pull/520
Github Author: Cspeisman <Cspeisman@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-03-31 10:06:09 -08:00
Spencer Ahrens c8c4b41827 Merge pull request #242 from salutis/master
[website] Improve typography
2015-03-31 10:13:13 -07:00
Christopher Chedeau 536b4669a3 Add Edit on Github link on pages. cc @DMortens 2015-03-31 10:10:05 -07:00
Christopher Chedeau ed7b5cb187 Fix docs 2015-03-31 09:46:45 -07:00
Christopher Chedeau af9f0972b6 Merge pull request #546 from tjwudi/patch-2
Add guide for using React Native in existing iOS App
2015-03-31 08:26:48 -07:00
John Wu 35bea5fddc Local image resources for docs 2015-03-31 23:24:37 +08:00
Christopher Chedeau 75f6d2b8f9 Merge pull request #525 from vjeux/updates15
Updates from Mon 30 Mar
2015-03-31 08:22:00 -07:00
John Wu 4040295750 typo fixed 2015-03-31 23:20:26 +08:00
John Wu b873fd6e31 Update EmbededApp.md
Use ``` instead of indentation for code blocks
2015-03-31 23:01:14 +08:00