mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
5c2f536e9a
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
30 lines
869 B
Java
30 lines
869 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;
|
|
|
|
import android.view.View;
|
|
|
|
import com.facebook.react.uimanager.ThemedReactContext;
|
|
import com.facebook.react.uimanager.ViewManager;
|
|
|
|
/**
|
|
* Base class to ViewManagers that don't map to a View.
|
|
*/
|
|
abstract class VirtualViewManager<C extends FlatShadowNode> extends ViewManager<View, C> {
|
|
@Override
|
|
protected View createViewInstance(ThemedReactContext reactContext) {
|
|
throw new RuntimeException(getName() + " doesn't map to a View");
|
|
}
|
|
|
|
@Override
|
|
public void updateExtraData(View root, Object extraData) {
|
|
}
|
|
}
|