mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-06 22:38:37 +08:00
Add support for RCTText under FlatUIImplementation
Summary: @public Initial version of FlatUIImplementation lacks any primitives support (such as RCTText, RCTImageView or RCTView). This diff add the first part, RCTText (alongside with RCTVirtualText and RCTRawText). Reviewed By: sriramramani Differential Revision: D2693348
This commit is contained in:
committed by
Ahmed El-Helw
parent
44d2ee1c3f
commit
5c2f536e9a
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
package com.facebook.react.flat;
|
||||
|
||||
/**
|
||||
* ViewManager that creates instances of RCTText.
|
||||
*/
|
||||
/* package */ final class RCTTextManager extends VirtualViewManager<RCTText> {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RCTText";
|
||||
}
|
||||
|
||||
@Override
|
||||
public RCTText createShadowNodeInstance() {
|
||||
return new RCTText();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<RCTText> getShadowNodeClass() {
|
||||
return RCTText.class;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user