Merge pull request #6 from gustavo-em/auto_capitalize_inputs
FIxing Capitalize Input
This commit is contained in:
commit
0b9e2d784d
@ -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
Normal file
26334
package-lock.json
generated
Normal file
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…
Reference in New Issue
Block a user