mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-06 09:31:11 +08:00
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
32 lines
785 B
Java
32 lines
785 B
Java
/**
|
|
* 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 RCTVirtualText.
|
|
*/
|
|
/* package */ final class RCTVirtualTextManager extends VirtualViewManager<RCTVirtualText> {
|
|
|
|
@Override
|
|
public String getName() {
|
|
return "RCTVirtualText";
|
|
}
|
|
|
|
@Override
|
|
public RCTVirtualText createShadowNodeInstance() {
|
|
return new RCTVirtualText();
|
|
}
|
|
|
|
@Override
|
|
public Class<RCTVirtualText> getShadowNodeClass() {
|
|
return RCTVirtualText.class;
|
|
}
|
|
}
|