mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Add Children.toArray to ReactNative
Summary: To fix #5769. I believe `ReactNative.Children.toArray` should be accessible now. Closes https://github.com/facebook/react-native/pull/5780 Reviewed By: svcscm Differential Revision: D2907876 Pulled By: spicyj fb-gh-sync-id: 649908843f535a89909425bcdcbc58461854779b
This commit is contained in:
committed by
facebook-github-bot-2
parent
109036b4c4
commit
7cbad9f530
@@ -84,6 +84,7 @@ var ReactNative = {
|
||||
map: ReactChildren.map,
|
||||
forEach: ReactChildren.forEach,
|
||||
count: ReactChildren.count,
|
||||
toArray: ReactChildren.toArray,
|
||||
only: onlyChild
|
||||
},
|
||||
Component: ReactComponent,
|
||||
|
||||
Reference in New Issue
Block a user