You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am receiving 8 errors in 3 files.
Has somebody the same problem?
`node_modules/rn-range-slider/hooks.tsx:141:9 - error TS2769: No overload matches this call.
Overload 1 of 2, '(props: {} | Readonly<{}>): LabelContainer', gave the following error.
Type '{ onLayout: ({ nativeEvent }: any) => void; ref: MutableRefObject<LabelContainer | null>; renderContent: (value: number) => ReactNode; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
Property 'onLayout' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
Overload 2 of 2, '(props: {}, context: any): LabelContainer', gave the following error.
Type '{ onLayout: ({ nativeEvent }: any) => void; ref: MutableRefObject<LabelContainer | null>; renderContent: (value: number) => ReactNode; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
Property 'onLayout' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
141 onLayout={handleLayout}
~~~~~~~~
node_modules/rn-range-slider/index.tsx:116:5 - error TS2349: This expression is not callable.
Not all constituents of type '{ position: string; left: Value; right: Value; } | (() => void)' are callable.
Type '{ position: string; left: Value; right: Value; }' has no call signatures.
116 updateSelectedRail();
~~~~~~~~~~~~~~~~~~
node_modules/rn-range-slider/index.tsx:260:13 - error TS2349: This expression is not callable.
Not all constituents of type 'Element | ((thumbPositionInView: any, value: any) => void)' are callable.
Type 'Element' has no call signatures.
node_modules/rn-range-slider/index.tsx:262:13 - error TS2349: This expression is not callable.
Not all constituents of type 'Element | ((thumbPositionInView: any, value: any) => void)' are callable.
Type 'Element' has no call signatures.
node_modules/rn-range-slider/index.tsx:263:13 - error TS2349: This expression is not callable.
Not all constituents of type '{ position: string; left: Value; right: Value; } | (() => void)' are callable.
Type '{ position: string; left: Value; right: Value; }' has no call signatures.
263 updateSelectedRail();
~~~~~~~~~~~~~~~~~~
node_modules/rn-range-slider/index.tsx:307:26 - error TS2322: Type '{ position: string; left: Value; right: Value; } | (() => void)' is not assignable to type 'false | RegisteredStyle | Value | AnimatedInterpolation | WithAnimatedObject | WithAnimatedArray<...> | null | undefined'.
Type '{ position: string; left: Animated.Value; right: Animated.Value; }' is not assignable to type 'false | RegisteredStyle | Value | AnimatedInterpolation | WithAnimatedObject | WithAnimatedArray<...> | null | undefined'.
Type '{ position: string; left: Animated.Value; right: Animated.Value; }' is not assignable to type 'WithAnimatedObject'.
Types of property 'position' are incompatible.
Type 'string' is not assignable to type '"absolute" | "relative" | Value | AnimatedInterpolation | undefined'.
node_modules/@types/react-native/index.d.ts:2441:5
2441 style?: StyleProp | undefined;
~~~~~
The expected type comes from property 'style' which is declared here on type 'IntrinsicAttributes & AnimatedProps<ViewProps & RefAttributes> & { children?: ReactNode; }'
node_modules/rn-range-slider/LabelContainer.tsx:10:14 - error TS7006: Parameter 'value' implicitly has an 'any' type.
10 setValue = value => {
~~~~~
node_modules/rn-range-slider/LabelContainer.tsx:15:13 - error TS2339: Property 'renderContent' does not exist on type 'Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
I am receiving 8 errors in 3 files.
Has somebody the same problem?
`node_modules/rn-range-slider/hooks.tsx:141:9 - error TS2769: No overload matches this call.
Overload 1 of 2, '(props: {} | Readonly<{}>): LabelContainer', gave the following error.
Type '{ onLayout: ({ nativeEvent }: any) => void; ref: MutableRefObject<LabelContainer | null>; renderContent: (value: number) => ReactNode; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
Property 'onLayout' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
Overload 2 of 2, '(props: {}, context: any): LabelContainer', gave the following error.
Type '{ onLayout: ({ nativeEvent }: any) => void; ref: MutableRefObject<LabelContainer | null>; renderContent: (value: number) => ReactNode; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
Property 'onLayout' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
141 onLayout={handleLayout}
~~~~~~~~
node_modules/rn-range-slider/index.tsx:116:5 - error TS2349: This expression is not callable.
Not all constituents of type '{ position: string; left: Value; right: Value; } | (() => void)' are callable.
Type '{ position: string; left: Value; right: Value; }' has no call signatures.
116 updateSelectedRail();
~~~~~~~~~~~~~~~~~~
node_modules/rn-range-slider/index.tsx:260:13 - error TS2349: This expression is not callable.
Not all constituents of type 'Element | ((thumbPositionInView: any, value: any) => void)' are callable.
Type 'Element' has no call signatures.
260 labelUpdate(gestureStateRef.current.lastPosition, value);
~~~~~~~~~~~
node_modules/rn-range-slider/index.tsx:262:13 - error TS2349: This expression is not callable.
Not all constituents of type 'Element | ((thumbPositionInView: any, value: any) => void)' are callable.
Type 'Element' has no call signatures.
262 notchUpdate(gestureStateRef.current.lastPosition, value);
~~~~~~~~~~~
node_modules/rn-range-slider/index.tsx:263:13 - error TS2349: This expression is not callable.
Not all constituents of type '{ position: string; left: Value; right: Value; } | (() => void)' are callable.
Type '{ position: string; left: Value; right: Value; }' has no call signatures.
263 updateSelectedRail();
~~~~~~~~~~~~~~~~~~
node_modules/rn-range-slider/index.tsx:307:26 - error TS2322: Type '{ position: string; left: Value; right: Value; } | (() => void)' is not assignable to type 'false | RegisteredStyle | Value | AnimatedInterpolation | WithAnimatedObject | WithAnimatedArray<...> | null | undefined'.
Type '{ position: string; left: Animated.Value; right: Animated.Value; }' is not assignable to type 'false | RegisteredStyle | Value | AnimatedInterpolation | WithAnimatedObject | WithAnimatedArray<...> | null | undefined'.
Type '{ position: string; left: Animated.Value; right: Animated.Value; }' is not assignable to type 'WithAnimatedObject'.
Types of property 'position' are incompatible.
Type 'string' is not assignable to type '"absolute" | "relative" | Value | AnimatedInterpolation | undefined'.
307 <Animated.View style={selectedRailStyle}>
~~~~~
node_modules/@types/react-native/index.d.ts:2441:5
2441 style?: StyleProp | undefined;
~~~~~
The expected type comes from property 'style' which is declared here on type 'IntrinsicAttributes & AnimatedProps<ViewProps & RefAttributes> & { children?: ReactNode; }'
node_modules/rn-range-slider/LabelContainer.tsx:10:14 - error TS7006: Parameter 'value' implicitly has an 'any' type.
10 setValue = value => {
~~~~~
node_modules/rn-range-slider/LabelContainer.tsx:15:13 - error TS2339: Property 'renderContent' does not exist on type 'Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
15 const { renderContent, ...restProps } = this.props;
~~~~~~~~~~~~~
Found 8 errors in 3 files.`
The text was updated successfully, but these errors were encountered: