Skip to content

Commit

Permalink
fix: android animated and input
Browse files Browse the repository at this point in the history
  • Loading branch information
awmoreira committed Oct 5, 2021
1 parent eeac62e commit cd67e5a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import com.android.build.OutputFile
*/

project.ext.react = [
enableHermes: false, // clean and rebuild if changing
enableHermes: true, // clean and rebuild if changing
]

apply from: "../../node_modules/react-native/react.gradle"
Expand Down
7 changes: 7 additions & 0 deletions android/app/src/main/java/com/mobile/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import com.facebook.soloader.SoLoader;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import com.facebook.react.bridge.JSIModulePackage; // <- add
import com.swmansion.reanimated.ReanimatedJSIModulePackage; // <- add

public class MainApplication extends Application implements ReactApplication {

Expand All @@ -33,6 +35,11 @@ protected List<ReactPackage> getPackages() {
protected String getJSMainModuleName() {
return "index";
}

@Override
protected JSIModulePackage getJSIModulePackage() {
return new ReanimatedJSIModulePackage(); // <- add
}
};

@Override
Expand Down
3 changes: 2 additions & 1 deletion src/components/TextInput/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const WrapperInput = styled.View<IWrapperInput>`

export const Input = styled.TextInput`
flex: 1;
padding: ${() => (Platform.OS === 'ios' ? 0 : 5)}px 0 0 0;
height: 58px;
/* padding: ${() => (Platform.OS === 'ios' ? 0 : 0)}px 0 0 0; */
color: ${({theme, editable}) =>
editable === false ? theme.colors.gray[200] : theme.colors.gray[400]};
font-family: ${({theme}) => theme.fonts.karla.regular};
Expand Down

0 comments on commit cd67e5a

Please sign in to comment.