From dd670ac5483c55ccc6343bb227eb9490315f225a Mon Sep 17 00:00:00 2001 From: Yogesh Singh Date: Tue, 29 Oct 2024 19:40:14 +0530 Subject: [PATCH] resolved npm publish dry run warnings --- .../react-native-room-kit/src/components/HMSBaseButton.tsx | 4 +++- .../src/components/HMSSendMessageInput.tsx | 2 +- .../react-native-room-kit/src/components/HMSTextInput.tsx | 2 +- .../react-native-room-kit/src/components/PollQuestion.tsx | 6 +++--- .../react-native-room-kit/src/components/TilesContainer.tsx | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/react-native-room-kit/src/components/HMSBaseButton.tsx b/packages/react-native-room-kit/src/components/HMSBaseButton.tsx index 3ef1a5cdd..12057131a 100644 --- a/packages/react-native-room-kit/src/components/HMSBaseButton.tsx +++ b/packages/react-native-room-kit/src/components/HMSBaseButton.tsx @@ -45,7 +45,9 @@ export const HMSBaseButton: React.FC = ({ wrapWithGestureDetector, useTouchableOpacity, }) => { - const Touchable = useTouchableOpacity ? TouchableOpacity : TouchableHighlight; + const Touchable = ( + useTouchableOpacity ? TouchableOpacity : TouchableHighlight + ) as React.ElementType; const button = ( = ({ onChangeText={setMessage} placeholder="Send a message..." autoCapitalize="sentences" - autoCompleteType="off" + autoComplete="off" containerStyle={[ styles.inputContainer, hmsRoomStyles.containerStyle, diff --git a/packages/react-native-room-kit/src/components/HMSTextInput.tsx b/packages/react-native-room-kit/src/components/HMSTextInput.tsx index 67612eb58..b2bbabbe0 100644 --- a/packages/react-native-room-kit/src/components/HMSTextInput.tsx +++ b/packages/react-native-room-kit/src/components/HMSTextInput.tsx @@ -123,7 +123,7 @@ export const HMSTextInput: React.FC = ({ onChangeText={onChangeText} placeholder={resetProps.placeholder ?? 'Enter Name...'} autoCapitalize={resetProps.autoCapitalize ?? 'words'} - autoCompleteType={resetProps.autoCompleteType ?? 'name'} + autoComplete={resetProps.autoComplete ?? 'name'} placeholderTextColor={ resetProps.placeholderTextColor ?? onSurfaceMediumColor } diff --git a/packages/react-native-room-kit/src/components/PollQuestion.tsx b/packages/react-native-room-kit/src/components/PollQuestion.tsx index 281396853..ca3cb19b8 100644 --- a/packages/react-native-room-kit/src/components/PollQuestion.tsx +++ b/packages/react-native-room-kit/src/components/PollQuestion.tsx @@ -363,7 +363,7 @@ export const PollQuestion: React.FC = ({ value={pollQuestion.title} autoFocus={false} autoCapitalize="none" - autoCompleteType="off" + autoComplete="off" onChangeText={(value) => onQuestionFieldChange(currentQuestionIndex, 'title', value) } @@ -419,7 +419,7 @@ export const PollQuestion: React.FC = ({ style={hmsRoomStyles.optionText} value={option[1]} autoCapitalize="none" - autoCompleteType="off" + autoComplete="off" autoFocus={false} onChangeText={(value) => onEditPollQuestionOption(currentQuestionIndex, idx, value) @@ -503,7 +503,7 @@ export const PollQuestion: React.FC = ({ value={pollQuestion.pointWeightage} autoFocus={false} autoCapitalize="none" - autoCompleteType="off" + autoComplete="off" keyboardType={Platform.OS === 'android' ? 'numeric' : 'number-pad'} onChangeText={(value) => onQuestionFieldChange( diff --git a/packages/react-native-room-kit/src/components/TilesContainer.tsx b/packages/react-native-room-kit/src/components/TilesContainer.tsx index 44b15baa2..397588fa0 100644 --- a/packages/react-native-room-kit/src/components/TilesContainer.tsx +++ b/packages/react-native-room-kit/src/components/TilesContainer.tsx @@ -152,7 +152,7 @@ function computeTileWidthAndHeight( ): { width?: ViewStyle['width']; height?: ViewStyle['height']; - aspectRatio?: ViewStyle['aspectRatio']; + aspectRatio?: number | undefined; } { const { type, isLandscapeOrientation } = config || { type: 'default',