Skip to content

Commit

Permalink
Revert "Merge pull request #4366 from wix/bugfix/update_slider"
Browse files Browse the repository at this point in the history
This reverts commit f4c6593, reversing
changes made to 546d07f.
  • Loading branch information
d4vidi committed Feb 25, 2024
1 parent 1bb7485 commit 3d09c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
8 changes: 1 addition & 7 deletions detox/test/src/Screens/ActionsScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ import {
} from 'react-native';
import TextInput from '../Views/TextInput';
import Slider from '@react-native-community/slider';

let LegacySlider;
try {
LegacySlider = require('react-native').Slider;
} catch (e) {
// Ignore
}
const LegacySlider = require('react-native').Slider;

const DoubleTapsText = requireNativeComponent('DetoxDoubleTapsTextView');
const SluggishTapsText = requireNativeComponent('DetoxSluggishTapsTextView');
Expand Down
7 changes: 1 addition & 6 deletions detox/test/src/Screens/AttributesScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ import {
import CheckBox from '@react-native-community/checkbox';
import Slider from '@react-native-community/slider';
import {default as DatePicker} from '@react-native-community/datetimepicker';
let LegacySlider;
try {
LegacySlider = require('react-native').Slider;
} catch (e) {
// Ignore
}
const LegacySlider = require('react-native').Slider;

export default class AttributesScreen extends Component {
constructor(props) {
Expand Down

0 comments on commit 3d09c13

Please sign in to comment.