diff --git a/src/ClearButtonAndSpinner.tsx b/src/ClearButtonAndSpinner.tsx index 81e3327..cfe8509 100644 --- a/src/ClearButtonAndSpinner.tsx +++ b/src/ClearButtonAndSpinner.tsx @@ -21,6 +21,7 @@ interface ClearButtonAndSpinnerProps isInputEmpty: boolean; isLoading: boolean; onPress: () => void; + testIDSuffix?: string; } const ClearButtonAndSpinner: React.FC = ({ @@ -32,6 +33,7 @@ const ClearButtonAndSpinner: React.FC = ({ isInputEmpty, onPress, clearElement, + testIDSuffix = '', }) => { // Loading indicator if (isLoading) { @@ -39,6 +41,7 @@ const ClearButtonAndSpinner: React.FC = ({ return ( = ({ // Clear button return ( ([]); const [loading, setLoading] = useState(false); const [inputText, setInputText] = useState(value || ''); @@ -527,6 +536,7 @@ const GooglePlacesTextInput = forwardRef< return ( {secondaryText && ( - + + {/* Render Button and Loader here if is forced RTL */} {isRTL !== isDeviceRTL && ( )} )} {/* Suggestions */} {showSuggestions && predictions.length > 0 && ( - + item.placePrediction.placeId}