Emil Sjolander and Facebook Github Bot
b58c8ad916
Remove deprecated java code
...
Reviewed By: AaaChiuuu
Differential Revision: D4233198
fbshipit-source-id: 736d79be266e1b9f2d62e5fe6d901de47123cdc1
2016-11-29 12:28:55 -08:00
Emil Sjolander and Facebook Github Bot
065af66deb
Remove Style prefix in java and cs apis
...
Reviewed By: splhack
Differential Revision: D4232920
fbshipit-source-id: 6e2ff21bbb7e0e441892023c14df579d1bc7aa49
2016-11-29 09:13:28 -08:00
Emil Sjolander and Facebook Github Bot
f1a5233fd2
Always use soloader. Catching exception and re-trying hides errors
...
Reviewed By: lexs
Differential Revision: D4243906
fbshipit-source-id: e4d691c9c49f3b9316f67e39b9f277657d78fb3c
2016-11-29 04:43:30 -08:00
Emil Sjolander and Facebook Github Bot
28275836c9
Dont strip class names referenced from native
...
Reviewed By: lexs
Differential Revision: D4237790
fbshipit-source-id: 1bd0780d965efbb8334917011ffd65896670ece1
2016-11-28 09:28:28 -08:00
Emil Sjolander and Facebook Github Bot
e1df3c8782
Add aspectRatio style property
...
Reviewed By: gkassabli
Differential Revision: D4211458
fbshipit-source-id: f8d0d318369c7b529ee29e61a52b17d0cf3b396d
2016-11-21 10:13:34 -08:00
Kazuki Sakamoto and Facebook Github Bot
2af1de283c
CSSNodeCopyStyle API for Java and C#
...
Reviewed By: emilsjolander
Differential Revision: D4189954
fbshipit-source-id: 10759fdb27bf67350d3151614f7815aa09bf7e04
2016-11-17 09:13:32 -08:00
Emil Sjolander and Facebook Github Bot
ffcdf25281
Autogenerate enum defenitions for all languages
...
Reviewed By: gkassabli
Differential Revision: D4174263
fbshipit-source-id: 478961a8f683e196704d3c6ea1505a05c85fcb10
2016-11-15 08:44:30 -08:00
Emil Sjolander and Facebook Github Bot
307871e854
Implement standard interface for toggling experimental features
...
Reviewed By: gkassabli
Differential Revision: D4174260
fbshipit-source-id: ad3667183810c02833fba9a1276f89286e848fcd
2016-11-14 03:28:39 -08:00
Emil Sjolander and Facebook Github Bot
867ea1bfaf
Expose CSSLayoutSetLogger to java
...
Reviewed By: astreet
Differential Revision: D4153502
fbshipit-source-id: 630909d9d0d36d94d7cd3027476ddb52668b8cc0
2016-11-11 08:13:34 -08:00
Emil Sjolander and Facebook Github Bot
81e4139edc
Remove isTextNode optimization
...
Reviewed By: astreet
Differential Revision: D4146785
fbshipit-source-id: e20d780fbd5759b8f38b809e8cadf29cedee82a8
2016-11-08 09:13:43 -08:00
Andy Street and Facebook Github Bot
0089cd7630
Make CSSNode#measure final, cache more correct methodid
...
Summary:
In the JNI portion of CSSLayout, there's a subtle bug where we were caching the jmethodid of the 'measure' of the first object that had measure called on it. However, if that class had overriden measure, then the jmethodid would be specific to that subclass's implementation and would not work for other classes. Conversely, if a regular CSSNode had been called first, then the super method would be called on the subclass instead of the proper overriden method.
Since there's not really a reason to overriden measure anyway (since you can just provide a different measure function), it's safest to just mark it final and explicitly cache the appropriate methodid
Reviewed By: emilsjolander
Differential Revision: D4132428
fbshipit-source-id: 6fb51597d80f1c03681e6611153b52b73b392245
2016-11-07 06:14:28 -08:00
Andy Street and Facebook Github Bot
a320b0ab19
Lazy create children list when first child is added
...
Summary: We don't need to allocate a list for every node since leaf nodes don't have children.
Reviewed By: emilsjolander
Differential Revision: D4130818
fbshipit-source-id: 80d3e98fce9d2daa0676fd1cbed0e81edcf7adb3
2016-11-07 05:43:40 -08:00
Emil Sjolander and Facebook Github Bot
844cafd883
Set layout outputs on java object from C
...
Reviewed By: lexs
Differential Revision: D4077968
fbshipit-source-id: bce86ba610cd5ae36cfb45d78b2609c63a14cfa3
2016-10-27 10:58:42 -07:00
Emil Sjolander and Facebook Github Bot
553f4371e0
BREAKING - Change measure() api to remove need for MeasureOutput allocation
...
Reviewed By: splhack
Differential Revision: D4081037
fbshipit-source-id: 28adbcdd160cbd3f59a0fdd4b9f1200ae18678f1
2016-10-27 10:58:42 -07:00
Emil Sjolander and Facebook Github Bot
d8e77f0c76
Reset java state in jni reset method
...
Differential Revision: D4081049
fbshipit-source-id: 0b9ad70339ad906ad5219ad2679329cfe2fd7abc
2016-10-26 07:28:48 -07:00
Emil Sjolander and Facebook Github Bot
2df4faaf15
Dont go down through JNI to figure out that no margin/padding/border/position was set
...
Differential Revision: D4080909
fbshipit-source-id: 7eb1885c615191055aa21e3435c6fbc652b883ae
2016-10-26 02:58:40 -07:00
Emil Sjolander and Facebook Github Bot
6664b816d7
Dont create a spacing object for returning margin, padding, border, and position
...
Differential Revision: D4050773
fbshipit-source-id: 3fd04c27f887a36875e455b5404a17154ac18f91
2016-10-24 10:43:43 -07:00
Emil Sjolander and Facebook Github Bot
58b5e28e71
Simplify memory model between managed and unmanaged memory
...
Differential Revision: D4051454
fbshipit-source-id: 8f5d010be520b3d1c981a7f85e5e6d95773ea6c1
2016-10-24 10:43:43 -07:00
Emil Sjolander and Facebook Github Bot
ea6458b63e
Remove flex shorthand getter because it doesnt make a lot of sense
...
Reviewed By: gkassabli
Differential Revision: D4064674
fbshipit-source-id: 69935b85042020b4e8c61a393c1be8f4d42a6674
2016-10-24 03:44:22 -07:00
Emil Sjolander and Facebook Github Bot
1f36d98874
Add tests for java jni bindings
...
Reviewed By: lucasr
Differential Revision: D4008411
fbshipit-source-id: c896a3925ff3f7fa368176a3d03c84eb7188ef60
2016-10-12 09:58:37 -07:00
Emil Sjolander and Facebook Github Bot
fb245cca83
Rename init() -> reinit() to be more in line with what it now does
...
Reviewed By: lucasr
Differential Revision: D3992811
fbshipit-source-id: 61a10acc873ec028b2789007a400d89e62cf31d6
2016-10-12 03:58:45 -07:00
Emil Sjolander and Facebook Github Bot
64455ced5d
Rename reset() -> free() to be more in line with what it now does
...
Reviewed By: lucasr
Differential Revision: D3992808
fbshipit-source-id: 8428ae33268d1417ce8642b741e47150a17bf077
2016-10-12 03:58:44 -07:00
Emil Sjolander and Facebook Github Bot
38bd937b40
Automatically init native memory when allocating java wrapper
...
Reviewed By: lucasr
Differential Revision: D3992802
fbshipit-source-id: 06d65821f1802ed8f2b2db651cef69f6851803f2
2016-10-12 03:58:44 -07:00
Emil Sjolander and Facebook Github Bot
6dae68306e
JNI version is the default, its name should reflect that
...
Reviewed By: lucasr
Differential Revision: D3992777
fbshipit-source-id: cdd4cc58f3c15b5db1158f6f794394eb5c44a44d
2016-10-12 03:58:44 -07:00
Emil Sjolander and Facebook Github Bot
5c728a47b9
Clearly mark java CSSNode as deprecated. It will go away very soon
...
Reviewed By: lucasr
Differential Revision: D3992775
fbshipit-source-id: b3ceca277e5c7426eb51f8cbeacf5e2fe451c6ec
2016-10-12 02:59:18 -07:00
Emil Sjolander and Facebook Github Bot
d89f59d94a
Resolve some differences between CSSNode and CSSNodeJNI
...
Reviewed By: lucasr
Differential Revision: D3960755
fbshipit-source-id: 3e13a9435208851a96a619c07625ef2a5402f5ec
2016-10-07 05:28:37 -07:00
Emil Sjolander and Facebook Github Bot 6
0a9b6bedb3
BREAKING - Fix unconstraint sizing in main axis
...
Summary:
This fixes measuring of items in the main axis of a container. Previously items were in a lot of cases measured with UNSPECIFIED instead of AT_MOST. This was to support scrolling containers. The correct way to handle scrolling containers is to instead provide them with their own overflow value to activate this behavior. This is also similar to how the web works.
This is a breaking change. Most of your layouts will continue to function as before however some of them might not. Typically this is due to having a `flex: 1` style where it is currently a no-op due to being measured with an undefined size but after this change it may collapse your component to take zero size due to the implicit `flexBasis: 0` now being correctly treated. Removing the bad `flex: 1` style or changing it to `flexGrow: 1` should solve most if not all layout issues your see after this diff.
Reviewed By: majak
Differential Revision: D3876927
fbshipit-source-id: 81ea1c9d6574dd4564a3333f1b3617cf84b4022f
2016-09-26 06:13:56 -07:00
Emil Sjolander and Facebook Github Bot 2
e63a7ea7bd
Implement flex properties in java version as well
...
Reviewed By: lucasr
Differential Revision: D3753231
fbshipit-source-id: ea41d887cd99d1f03d2bc876a2fd7141dbe48320
2016-08-23 04:43:32 -07:00
Emil Sjolander and Facebook Github Bot 4
fd34c6d567
Move default spacing out of csslayout
...
Reviewed By: foghina
Differential Revision: D3709574
fbshipit-source-id: 6e0277bd97407a5c642d742f93ca2ac70d7307da
2016-08-18 03:28:34 -07:00
Emil Sjolander and Facebook Github Bot 3
c2a41e42f2
Expose alignContent to java
...
Reviewed By: IanChilds
Differential Revision: D3709071
fbshipit-source-id: 421d75924ecc12d6d0975e342f3862cf5592f65f
2016-08-12 04:28:34 -07:00
Emil Sjolander and Facebook Github Bot
c74938e72e
Use spacing for position
...
Differential Revision: D3690235
fbshipit-source-id: 4c04952e6ded32fd5fbfdccf63736cf025ae470e
2016-08-10 05:13:30 -07:00
Emil Sjolander and Facebook Github Bot 7
1227675e0a
Expose methods to set position Start|End
...
Differential Revision: D3669177
fbshipit-source-id: b06f382cb89546e817a2475298cf2cad17d95a2c
2016-08-09 04:28:53 -07:00
Emil Sjolander and Facebook Github Bot 2
e0fc8c0ea0
Add the ability to attach data to a java CSSNode
...
Reviewed By: lucasr
Differential Revision: D3662065
fbshipit-source-id: 560a768092f17381e99b349d08bd4a8b365541be
2016-08-04 08:28:53 -07:00
Emil Sjolander and Facebook Github Bot 2
5fd6c0903e
Add jni bindings
...
Reviewed By: lucasr
Differential Revision: D3648793
fbshipit-source-id: d0e696e196fa7c63109c9117a65645ca3d6c9c00
2016-08-04 08:28:53 -07:00
Mengjue Wang and Facebook Github Bot 8
70dc98dea4
Provide RTL support for RCTShadowView according to new csslayout
...
Summary:
The make current RCTShadowView support RTL layout.
1 Change all left/right to start/end for margin, padding, boarder and position
2 Calculate position in the same way as margin, padding and boarder
Reviewed By: fkgozali
Differential Revision: D3619292
fbshipit-source-id: eaaa6faeee93c964d59bb6f498d89effc09ed567
2016-07-29 10:43:23 -07:00
Mengjue Wang and Facebook Github Bot 9
873c6ff5b9
Fix CSSLayout to Support RTL
...
Summary:
The current CSSLayout can't support RTL because wrong calculation for absolute position.
This change is mainly to fix the issue: https://github.com/facebook/css-layout/issues/197
Three main problems I fixed:
1. Calculate the position in the same way as margin, boarder, and padding. So that to fix the absolute problem.
2. Fix one wrong calculation for leading value when we only know the trailing value. It was hard code for the LTR situation. Now I changed it to depends on the main Axis.
3. Expose getter and setter function for RN to read layout direction and start/end position value.
Reviewed By: fkgozali
Differential Revision: D3616949
fbshipit-source-id: ae7a47cc0a5d02b42b95f87232be51ab144056d9
2016-07-28 14:58:35 -07:00
Emil Sjolander and Facebook Github Bot 8
86e304f6a3
Move csslayout into xplat
...
Reviewed By: lucasr
Differential Revision: D3509483
fbshipit-source-id: dfd0b00002b7da6432667b4a795edb5a15cf9a88
2016-07-13 10:28:27 -07:00
Emil Sjolander and Facebook Github Bot 2
8afcaa36e6
Import latest css-layout
...
Summary:
Import latest master from css-layout.
This includes the following pull requests:
https://github.com/facebook/css-layout/pull/192
https://github.com/facebook/css-layout/pull/193
https://github.com/facebook/css-layout/pull/195
https://github.com/facebook/css-layout/pull/196
Reviewed By: javache
Differential Revision: D3411535
fbshipit-source-id: 95bee9bd0282f98f6fafa15335b910b644395ad3
2016-06-13 07:58:35 -07:00
Emil Sjolander and Facebook Github Bot 8
c2c370c886
import css-layout-185
...
Reviewed By: lucasr
Differential Revision: D3312496
fbshipit-source-id: 259b6db2fc0166696eb171dc6e2974c81ec2133f
2016-05-31 04:13:32 -07:00
Emil Sjolander and Facebook Github Bot 4
303428ea28
Import css-layout measure mode changes from pull request #163
...
Reviewed By: lucasr
Differential Revision: D3167760
fb-gh-sync-id: f4f13bcb09a2d8b2db2764bd31fa8cbd8edb484b
fbshipit-source-id: f4f13bcb09a2d8b2db2764bd31fa8cbd8edb484b
2016-04-12 07:02:29 -07:00
Emil Sjolander and Facebook Github Bot 3
8ef551174b
backout update of css-layout. breaks ios <9
...
Reviewed By: javache
Differential Revision: D3164127
fb-gh-sync-id: 3926430f365711466ba93cd2eb7c91f31ef0c7f8
fbshipit-source-id: 3926430f365711466ba93cd2eb7c91f31ef0c7f8
2016-04-11 14:56:21 -07:00
Emil Sjolander and Facebook Github Bot 8
3b5a49bfb6
Import css-layout measure mode changes from pull request #163
...
Reviewed By: astreet
Differential Revision: D3059432
fb-gh-sync-id: 56cc13ffbc4805aa0789df62a04e19f23a438bd3
fbshipit-source-id: 56cc13ffbc4805aa0789df62a04e19f23a438bd3
2016-04-07 10:16:30 -07:00
Martin Kralik and facebook-github-bot-9
c46936a00d
updated css-layout and fixed callsites
...
Reviewed By: foghina
Differential Revision: D2757965
fb-gh-sync-id: 061ff38ae59783edb36ff66516866e4a22fd6e25
2015-12-15 04:49:29 -08:00
Krzysztof Magiera and facebook-github-bot-9
44ff93e7bf
Sync latest code from github
...
Differential Revision: D2566417
fb-gh-sync-id: 9eb9fbbb2dfbd5337de128ea4415120faf089aaa
2015-10-21 12:52:26 -07:00
Felix Oghină and facebook-github-bot-5
b721c12516
import latest changes from github
...
Differential Revision: D2536028
fb-gh-sync-id: 2d28b10f06b4ab3a9113b7870e58faf6debba9b6
2015-10-13 06:59:42 -07:00
Martin Konicek
27ab039b6a
Export latest Android changes
2015-09-17 14:33:28 +01:00
Martin Konicek
42eb5464fd
Release React Native for Android
...
This is an early release and there are several things that are known
not to work if you're porting your iOS app to Android.
See the Known Issues guide on the website.
We will work with the community to reach platform parity with iOS.
2015-09-14 18:13:39 +01:00