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

144 Коммитов

Автор SHA1 Сообщение Дата
Eric Traut 0858c4ed5f Updated new animated APIs to work around the way that RN.Animated works. 2017-09-21 13:39:09 -07:00
Eric Traut 1ccb82370d Published version 0.46 of reactxp. 2017-09-21 12:53:33 -07:00
David de Regt 6674f8506b Bumping to 0.46.0-rc.2 2017-09-19 11:39:58 -07:00
David de Regt fdccce2c42 Enabling TSC Safety Options (strict nulls, etc.) and Fixing Type Definitions (#280)
* Rename #1 for ViewBase to fix caps

* Rename #2 to fix ViewBase.  Enabling forceConsistentCasingInFileNames.

* Enabling noImplicitReturns, fixing a bug in native-common/Linking.ts

* Enabling noImplicitThis

* Enabling noUnusedLocals and fixing some bugs it found

* Enabling strict null checks on reactxp

* Addressing PR feedback

* Fixing a bunch of type exporting/checking issues

* Fixed a bunch of base interfaces and made everything inherit from them.  Made the exported reactxp.ts files per-platform export types from the base classes instead of their specific implementation.  This brought a bunch of interface holes to the surface.
2017-09-18 21:47:24 -07:00
Eric Traut e74b968929 Updated version numbers. 2017-09-05 16:44:42 -07:00
Sergei Dryganets 4a27ee467e version bumped. We don't have a navigation API included (#253) 2017-09-05 10:50:07 -07:00
Brent Erickson be1a09f5eb Bump package json to release 0.42.0-rc.25 2017-08-18 13:54:56 -07:00
Brent Erickson bc970433fb Bump package json to 0.42.0-rc.24 for release 2017-08-09 09:14:38 -07:00
Brent Erickson 2b4439cdec Publish new version 0.42.0-rc.22 2017-08-02 09:35:14 -07:00
Eric Traut 0be4939e9b Published version 0.42.0-rc.22. 2017-07-30 10:26:19 -07:00
Eric Traut d238fe10d2 Published new version 0.42.0-rc.21. 2017-07-30 10:25:11 -07:00
Brent Erickson 7e590e0a3e Move to @types for lodash, use public SubscribableEvent (#149)
New lib.d.ts has fetch types and es6-promise types, so remove from project
Fix some type incompatibilities between RN & Web Animated implementation
2017-07-19 14:09:20 -07:00
David de Regt 05e64b165a rc-20: Fixing regression in Styles.combine introduced in rc-19. 2017-07-16 00:12:58 -07:00
Eric Traut bb0962fcff Updated to TypeScript 2.4. Fixed a bunch of bugs that were uncovered by the compiler. Made Styles.combine much more flexible - it now supports arbitrarily nested arrays of styles. Fixed inconsistent interface that someone recently added to Network API namespace for detecting network type. 2017-07-15 11:42:25 -07:00
David de Regt 0262e9c77b Fixing RX.Storage.getItem signature for strictNullChecks 2017-07-13 21:59:47 -07:00
Eric Traut 55eac947e3 Updated to version 0.42.0-rc.17. 2017-07-04 13:15:33 -07:00
Eric Traut fdcf98a368 Published 0.42.0-rc.16. 2017-06-30 16:02:58 -07:00
David de Regt 5d40721bde bump to 15 2017-06-26 16:56:35 -07:00
David de Regt fa99e646a4 bump to 14 2017-06-26 15:25:25 -07:00
David de Regt 0ee39456f7 Bumping package.json to .13 2017-06-26 12:04:07 -07:00
Eric Traut 803d18379f Bumped version to 0.42.0-rc.12. 2017-06-16 09:46:46 -07:00
Eric Traut 2e4e9171ca Added missing spaces to tslint scripts so they run on Windows. 2017-06-15 21:10:59 -07:00
Eric Traut bdf4f292e2 Bumped package version in prep for publishing new version. 2017-06-13 17:19:59 -07:00
Eric Traut 746d636bdb Bumped version and republished to include International APIs. 2017-05-25 18:07:17 -07:00
Eric Traut 3d3bba0b0c Republished latest build of reactxp to fix crashing bug in Navigator component. 2017-05-17 15:53:24 -07:00
Eric Traut db0b7f2d3f Published 0.42.0-rc.8 2017-05-16 10:30:27 -07:00
Eric Traut b6e92cd825 Removed Profiling API namespace. (#96) 2017-05-16 10:01:35 -07:00
Pierre Segalen 7a188d0115 Switch PropTypes import from React to 'prop-types' package (#92)
* Switched PropTypes import from React to 'prop-types' package

* Forgot to --save 'prop-types' npm package + Imported TypeDefinition from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prop-types

* Messed up bool.isRequired, my bad!
2017-05-15 17:41:32 -07:00
Brent Erickson c1b21133d2 [0.42.0-rc.7] Bump package.json for release 2017-05-15 12:10:48 -07:00
Brent Erickson ffd9e557a8 [0.42.0-rc.6] Bump package.json for release 2017-05-10 21:15:21 -07:00
Brent Erickson 12ce9ac365 [0.42.0-rc.5] Bump package.json for release 2017-05-10 10:43:53 -07:00
Brent Erickson 468f7e4384 [0.42.0-rc.4] Bump package.json for release 2017-04-27 12:20:03 -07:00
Brent Erickson 2c80cc3d65 [0.42.0-rc.3] package.json bump for release 2017-04-26 14:38:15 -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
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 aba1663ba2 Added VirtualListView and documentation. 2017-04-17 23:54:23 -07:00
Brent Erickson 03976d3ef4 Enable tslint in build process and fix lint 2017-04-12 20:12:09 -07:00
Eric Traut 1c6094fd47 Updated project and sample code to use React 15.5.3 and React Native 0.42.4. 2017-04-09 20:29:30 -07:00
Eric Traut f5970a24a6 Updated package.json to specify react and react-native as peerDependencies for reactxp. 2017-04-07 12:09:55 -07:00
ericptraut b03dc46f76 0.34.2: Include the latest interface changes. 2017-04-07 10:12:32 -07:00
Enrique Moreno 99efa0e101 Moving required packages from devDependencies to dependencies 2017-04-06 22:52:43 -07:00
David de Regt bfad0e8161 0.34.1: Updated metadata for first release of ReactXP 2017-04-06 16:49:16 -07:00
Eric Traut 0e195c9cac Removed ImageSvg from ReactXP core. 2017-04-06 16:18:30 -07:00
ericptraut 7d870bd69a Added source files. 2017-04-05 17:51:05 -07:00