mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 22:58:19 +00:00
Summary: Fabric-compatible Slider component, minus image support (coming soon!) Reviewed By: shergin Differential Revision: D13644717 fbshipit-source-id: ce3f0c1ee530be4807b875cb2080c59693b7337a
24 lines
538 B
C++
24 lines
538 B
C++
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
#pragma once
|
|
|
|
#include <react/components/view/ViewEventEmitter.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
class SliderEventEmitter : public ViewEventEmitter {
|
|
public:
|
|
using ViewEventEmitter::ViewEventEmitter;
|
|
|
|
void onValueChange(float value) const;
|
|
void onSlidingComplete(float value) const;
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|