callstack / react-native-paper

Material Design for React Native (Android & iOS)
https://reactnativepaper.com
MIT License
12.99k stars 2.1k forks source link

Fixed ThemeProp mapping - SegmentedButtons.tsx #4542

Closed aravind3566 closed 2 weeks ago

aravind3566 commented 2 weeks ago

Fix: Correct ThemeProp import path in SegmentedButtons.tsx

This pull request corrects the import path for ThemeProp in SegmentedButtons.tsx. The original import path was incorrect, leading to a broken build or runtime errors.

Motivation:

The current import import type { ThemeProp } from 'src/types'; is relative to the component's location and does not correctly resolve the ThemeProp type. This change updates the import to the correct relative path: import type { ThemeProp } from '../../../src/types';

Related Issue:

(If applicable, link to the related issue here. Otherwise, leave this section blank or describe the problem.)

Test Plan:

  1. Build the project. Verify that the build succeeds without errors related to ThemeProp.
  2. Run the application and ensure that the Segmented Buttons functionality works as expected. Confirm that there are no runtime errors related to the ThemeProp type.

This commit resolves this issue by fixing the import statement. The change involves a single addition and deletion within SegmentedButtons.tsx. The pull request is mergeable and passes lint, TypeScript, and tests.

callstack-bot commented 2 weeks ago

Hey @aravind3566, thank you for your pull request 🤗. The documentation from this branch can be viewed here.