mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-02 09:08:58 +08:00
Update KnownIssues.md
This commit is contained in:
@@ -57,9 +57,11 @@ There are known cases where the APIs could be made more consistent across iOS an
|
||||
- `ActivityIndicator` could render a native spinning indicator on both platforms (currently this is done using `ActivityIndicatorIOS` on iOS and `ProgressBarAndroid` on Android).
|
||||
- `ProgressBar` could render a horizontal progress bar on both platforms (on iOS this is `ProgressViewIOS`, on Android it's `ProgressBarAndroid`).
|
||||
|
||||
### Publishing modules on Android
|
||||
### Using 3rd-party native modules
|
||||
|
||||
There is currently no easy way of publishing custom native modules on Android. Smooth work flow for contributors is important and this will be looked at very closely after the initial Open Source release. Of course the aim will be to streamline and optimize the process between iOS and Android as much as possible.
|
||||
There are many awesome 3rd party modules: https://react.parts/native
|
||||
|
||||
Adding these to your apps should be made simpler. Here's [an example](https://github.com/apptailor/react-native-google-signin) how this is done currently.
|
||||
|
||||
### The `overflow` style property defaults to `hidden` and cannot be changed on Android
|
||||
|
||||
@@ -69,6 +71,10 @@ This is a result of how Android rendering works. This feature is not being worke
|
||||
|
||||
We don't support shadows on Android currently. These are notoriously hard to implement as they require drawing outside of a view's bounds and Android's invalidation logic has a hard time with that. A possible solution is to use [elevation](https://developer.android.com/training/material/shadows-clipping.html), but more experimentation will be required.
|
||||
|
||||
### Android M permissions
|
||||
|
||||
The open source version of React Native doesn't yet support the [Android M permission model](http://developer.android.com/training/permissions/requesting.html).
|
||||
|
||||
### Layout-only nodes on Android
|
||||
|
||||
An optimization feature of the Android version of React Native is for views which only contribute to the layout to not have a native view, only their layout properties are propagated to their children views. This optimization is to provide stability in deep view hierarchies for React Native and is therefore enabled by default. Should you depend on a view being present or internal tests incorrectly detect a view is layout only it will be necessary to turn off this behavior. To do this, set `collapsable` to false as in this example:
|
||||
|
||||
Reference in New Issue
Block a user