diff --git a/Libraries/Components/Slider/RCTSliderNativeComponent.js b/Libraries/Components/Slider/RCTSliderNativeComponent.js new file mode 100644 index 00000000000000..5bc081f38bc325 --- /dev/null +++ b/Libraries/Components/Slider/RCTSliderNativeComponent.js @@ -0,0 +1,15 @@ +/** + * 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. + * + * @format + * @flow strict-local + */ + +'use strict'; + +const requireNativeComponent = require('requireNativeComponent'); + +module.exports = requireNativeComponent('RCTSlider'); \ No newline at end of file diff --git a/Libraries/Components/Slider/Slider.js b/Libraries/Components/Slider/Slider.js index e768d5f8ff2d8d..8609eb8a43241c 100644 --- a/Libraries/Components/Slider/Slider.js +++ b/Libraries/Components/Slider/Slider.js @@ -23,7 +23,7 @@ import type {ColorValue} from 'StyleSheetTypes'; import type {ViewProps} from 'ViewPropTypes'; import type {SyntheticEvent} from 'CoreEventTypes'; -const RCTSlider = requireNativeComponent('RCTSlider'); +const RCTSlider = require('RCTSliderNativeComponent'); type Event = SyntheticEvent< $ReadOnly<{|