fixing_capitalize_of_input

This commit is contained in:
gustavo-em 2022-03-04 14:47:35 -03:00
parent acd18006fc
commit 4cdf612f0f
4 changed files with 26339 additions and 6 deletions

View File

@ -4,8 +4,6 @@ import android.app.Application;
import android.content.Context; import android.content.Context;
import com.facebook.react.PackageList; import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication; import com.facebook.react.ReactApplication;
import com.oblador.vectoricons.VectorIconsPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage; import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage; import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactInstanceManager;
@ -33,7 +31,7 @@ public class MainApplication extends Application implements ReactApplication {
@SuppressWarnings("UnnecessaryLocalVariable") @SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages(); List<ReactPackage> packages = new PackageList(this).getPackages();
//Packages that cannot be autolinked yet can be added manually here, for example: //Packages that cannot be autolinked yet can be added manually here, for example:
packages.add(new MyReactNativePackage(), new VectorIconsPackage()); //packages.add(new VectorIconsPackage());
return packages; return packages;
} }

26334
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -7,15 +7,16 @@ type IInputText = {
label: string; label: string;
onChangeText?: any, onChangeText?: any,
value?: any value?: any
autoCapitalize?: "none"
} }
export const InputText = (props: IInputText)=>{ export const InputText = (props: IInputText)=>{
const {children, placeholder, label, onChangeText, value} = props const {children, placeholder, label, onChangeText, value, autoCapitalize} = props
return ( return (
<> <>
<LabelInput>{props.label}</LabelInput> <LabelInput>{props.label}</LabelInput>
<WrapperInputText value={props.value} onChangeText={props.onChangeText} placeholder={props.placeholder}></WrapperInputText> <WrapperInputText autoCapitalize={props.autoCapitalize} value={props.value} onChangeText={props.onChangeText} placeholder={props.placeholder}></WrapperInputText>
</> </>
) )
} }

View File

@ -74,7 +74,7 @@ export const StorePortals = ({navigation, modalizeRef}:IStore)=>{
<InputText value={name} onChangeText={(e:any)=>setName(e)} placeholder={i18next.t("mobileApp.portals.fields.name.placeholder")} label={i18next.t("mobileApp.portals.fields.name.label")}/> <InputText value={name} onChangeText={(e:any)=>setName(e)} placeholder={i18next.t("mobileApp.portals.fields.name.placeholder")} label={i18next.t("mobileApp.portals.fields.name.label")}/>
</WrapperInput> </WrapperInput>
<WrapperInput> <WrapperInput>
<InputText value={url} onChangeText={(e:any)=>setUrl(e)} placeholder={i18next.t("mobileApp.portals.fields.url.placeholder")} label={i18next.t("mobileApp.portals.fields.url.label")}/> <InputText autoCapitalize='none' value={url} onChangeText={(e:any)=>setUrl(e)} placeholder={i18next.t("mobileApp.portals.fields.url.placeholder")} label={i18next.t("mobileApp.portals.fields.url.label")}/>
</WrapperInput> </WrapperInput>
<WrapperInput> <WrapperInput>
<ButtonApp onPress={onPress}><Text>{i18next.t("mobileApp.portals.addPortalPopup.confirm.button.label")}</Text></ButtonApp> <ButtonApp onPress={onPress}><Text>{i18next.t("mobileApp.portals.addPortalPopup.confirm.button.label")}</Text></ButtonApp>