fixing_capitalize_of_input

pull/6/head
gustavo-em 3 years ago
parent acd18006fc
commit 4cdf612f0f

@ -4,8 +4,6 @@ import android.app.Application;
import android.content.Context;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import com.oblador.vectoricons.VectorIconsPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import com.facebook.react.ReactInstanceManager;
@ -33,7 +31,7 @@ public class MainApplication extends Application implements ReactApplication {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
//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;
}

26334
package-lock.json generated

File diff suppressed because it is too large Load Diff

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

@ -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")}/>
</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>
<ButtonApp onPress={onPress}><Text>{i18next.t("mobileApp.portals.addPortalPopup.confirm.button.label")}</Text></ButtonApp>

Loading…
Cancel
Save