Граф коммитов

875 Коммитов

Автор SHA1 Сообщение Дата
Brent Erickson 815c2ef0ed Fix build break - /reactxp/src/native-common/Button.tsx[41, 16]: block is empty 2017-04-26 14:36:36 -07:00
Marat Abdullin 015b52ee60 Set the expexted box-sizing automatically, without asking the consumer to do so. 2017-04-26 18:12:30 +02:00
Marat Abdullin 6a27457ed6 A comment describing a dynamically created <style> element. 2017-04-26 18:09:51 +02:00
Eric Traut 5c7477cbd8 Added missing readme file for imagesvg extension. 2017-04-26 17:09:31 +02:00
Marat Abdullin 7526deb004 Displaying non-selectable texts as pseudo elements to avoid copying them to clipboard on web. 2017-04-26 13:56:35 +02:00
Eric Traut 90b0b62dd6 Updated version page to indicate that reactxp-imagesvg has been published. 2017-04-26 12:55:05 +02:00
Eric Traut 4fea2d9212 Added missing typings files for imagesvg extension. 2017-04-26 12:49:12 +02:00
Eric Traut 0838c88360 Merge pull request #68 from hccoelho/linkchanges
Support long press callback for the Link component
2017-04-23 05:50:48 +02:00
Eric Traut 2f59a50b0c Another small improvement to REST docs. 2017-04-23 05:32:09 +02:00
Eric Traut 093e4e52c5 Tweaked formatting for docs for REST client. 2017-04-23 05:30:37 +02:00
Eric Traut 01adecbbe9 Added documentation for REST Client extension (provided in separate git repo). 2017-04-23 05:28:24 +02:00
Henrique Coelho c38eb6d12f Remove unused vars from my previou commit 2017-04-22 20:17:58 -07:00
Eric Traut 9d742c8f47 Updated copyright and license notices in extension code for consistency with reactxp core sources. 2017-04-23 03:49:58 +02:00
Eric Traut eda561b515 Added ImageSvg extension to support cross-platform handling of SVG (scalable vector graphics) file formats and dynamic generation of SVG paths. Added documentation, but didn't yet create any sample code. 2017-04-23 03:32:58 +02:00
Henrique Coelho d37f3f4151 Clean timeout on web 2017-04-22 16:18:11 -07:00
Henrique Coelho 2de0ebd7c7 Update the documentation 2017-04-22 16:03:31 -07:00
Henrique Coelho d17f0b4322 Add event and url as part of the callback parameters for link 2017-04-22 15:58:03 -07:00
Eric Traut 2a95e8e788 Improved wording of docs. 2017-04-22 17:38:06 +02:00
Eric Traut 7cd9282518 Added documentation for nosqlprovider database. 2017-04-22 17:17:51 +02:00
Henrique Coelho 79c7f31d11 Support long press for link.tsx 2017-04-21 16:52:10 -07:00
bidanjun 00f48140dc add a simple sample for using resub and docs for it. (#48)
* add hello-resub fold,copy from hello-world.
* add a sample , using resub ,and show hello resub.
* add a button to show/hide hello resub string.
2017-04-21 13:08:24 -07:00
Adam Comella a53af431de Fixes for React Native 0.42.0 (#59)
* Bump React and React Native for RN 0.42

Note that I switched React to be the version listed in React Native 0.42's package.json file. Sometimes, React Native takes dependencies on React's internals so it's good to use the same version that React Native lists.

* Fix meaning of `flex` style for RN 0.42

In React Native 0.42, `flex` has a different behavior than it did in 0.34. RN 0.42 supports `flexGrow`, `flexShrink`, and `flexBasis` so we map `flex` into those properties exactly the same way web does in order to maintain consistent layout behavior between RN and web.

* Android TextInput: Hide default native underline

By default, Android's native EditText control shows an underline. In RN, setting the TextInput's background color used to cause the underline to be hidden. In a newer version of RN, it doesn't and we must explicitly set the underline's color to transparen to hide it.

You can see screenshots with and without the underline at https://github.com/facebook/react-native/issues/5424#issuecomment-262425480.

* Fix TextInput layout consistency by setting default padding to 0

Android's native EditText control has default non-zero padding. This causes RX's TextInput to render differently on Android than it does on iOS and web. Giving RX.TextInput a default padding of 0 fixes this consistency issue.

* RN 0.42 switched keyboardShouldPersistTaps from bool to enum

For now, RX's interface accepts only a boolean and converts it to the enum. In the future, we should remove support for the boolean from the interface and just support the enum.

* Implement setNativeProps for Button

When RX.View returns a Button, the Button is assigned to View's _nativeView instance variable and consequently is expected to implement setNativeProps.

* Fix Button's highlight when it is pressed

When a Button is pressed, its opacity should change. However, this broke in React Native 0.42. The problem is that Button incorporates ReactNative's Touchable.Mixin. In between RN 0.34 and 0.42, Touchable.Mixin started implementing the methods `componentDidMount` and `componentWillUnmount`. These ended up overriding Button's implementations so Button never set _isMounted to true, and functionality like changing the Button's opacity when it is pressed broke.

I don't know of a good fix for this. React has a mixin mechanism which would avoid this problem but it isn't supported when using ES6 classes. Consequently, we have to rely on our own mixin mechanism. I handled the naming collisions manually and wrote some asserts so we can detect new collisions in the future.

I deleted MixinUtil.ts to discourage people from using mixins in other places.

* Made changes based on code review feedback

* Addressed more PR feedback

- Don't need to bind the _mixin_* functions
- Instead of setting the _mixin_* functions to null, set them to a nop so the rest of the code doesn't have to worry about doing a null check before calling them.
2017-04-21 13:03:06 -07:00
Eric Traut e202a24b91 Added support for secureTextEntry prop in web implementation of TypeInput. 2017-04-20 22:07:30 -07:00
Eric Traut 2c9c04df5a Merge pull request #61 from berickson1/master
Fix #56 - fadeDuration should be a prop, not a style
2017-04-20 21:45:05 -07:00
Brent Erickson 05a4a34d01 Fix #56 - fadeDuration should be a prop, not a style 2017-04-20 17:34:57 -07:00
Eric Traut 762abbe745 Merge pull request #58 from 9Y5/yisheng/fix-modal-doc
Fix RX.Modal sample usage example.
2017-04-19 08:46:21 -07:00
Eric Traut 4817954942 Merge pull request #54 from eulphean/ak/popup
Make popups accessible.
2017-04-19 08:38:36 -07:00
Goh Yisheng Andrew 466756c345 Fix RX.Modal sample usage example. 2017-04-19 17:03:37 +08:00
Amay Kataria d1218a5927 Fix indent. 2017-04-18 15:25:20 -07:00
Amay Kataria cb7133fe11 Make popups accessible. 2017-04-18 15:19:31 -07:00
David de Regt 31e4c028fd 0.42.0-rc.2 release package.json bump. Fixing extension building. 2017-04-18 11:22:01 -07:00
Eric Traut e746ce0f6c Added example usage of VirtualListView. 2017-04-18 00:12:40 -07:00
Eric Traut aba1663ba2 Added VirtualListView and documentation. 2017-04-17 23:54:23 -07:00
Eric Traut 1ab616229b Added sample code for a simple animated ToggleSwitch in the Hello World app. 2017-04-16 10:41:50 -07:00
Eric Traut 2b554117b7 Added missing box-sizing CSS directives. 2017-04-16 10:41:50 -07:00
Eric Traut 5f73df0373 Merge pull request #46 from gautamkrishnar/patch-1
Made readme.md more descriptive
2017-04-13 21:47:44 -07:00
Gautam krishna.R 25529ab50b added info about CLA 2017-04-13 12:35:55 +05:30
Gautam krishna.R 9e658ce1a0 Made readme more descriptive 2017-04-13 12:25:07 +05:30
Eric Traut 328a54affd Merge pull request #44 from berickson1/tslint
Enable tslint in build process and fix lint
2017-04-12 20:19:58 -07:00
Brent Erickson 03976d3ef4 Enable tslint in build process and fix lint 2017-04-12 20:12:09 -07:00
David de Regt ac650f5485 Merge pull request #43 from mohsen1/patch-1
Use TypeScript for webpack config in hello world example
2017-04-12 10:15:43 -07:00
Eric Traut 25db79d0c0 Merge pull request #42 from plisy/master
Fixed issue with a11y label updates in native View
2017-04-12 09:41:03 -07:00
Mohsen Azimi b634d79221
add types and fix config 2017-04-12 09:33:01 -07:00
Mohsen Azimi 5816ba7f68 Use TypeScript for webpack config 2017-04-12 08:46:48 -07:00
Peter Lisy 9cbe435376 Fixed issue with a11y label updates in native View 2017-04-12 10:06:34 +02:00
Eric Traut db0018772c Merge pull request #40 from 599316527/master
Fix docs/react_concepts layout bug
2017-04-11 21:41:32 -07:00
Kyle 49b5ed7efd
Fix docs/react_concepts layout bug 2017-04-12 12:20:45 +08:00
Eric Traut d4ae691885 Merge pull request #36 from SukantGujar/patch-1
Add RX.Component and React.Component relationship.
2017-04-11 08:10:19 -07:00
Eric Traut 556bcc473b Fixed typo in comment reported by @p01. 2017-04-11 08:07:50 -07:00
SukantGujar 39b17a8d53 Change RX-Component to RX.Component. 2017-04-11 17:25:17 +05:30