Skip to content

Commit c8cc4ed

Browse files
committed
Android text input fix and shadow fix also closes the #3
1 parent 61b4c7f commit c8cc4ed

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

example/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import { SafeAreaView, View, Image, Text, StatusBar } from "react-native";
33
import LinearGradient from "react-native-linear-gradient";
44
// import CounterInput from "react-native-counter-input";
5-
import CounterInput from "./build/dist/CounterInput";
5+
import CounterInput from "./lib/CounterInput";
66

77
const App = () => {
88
return (

lib/CounterInput.style.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export const _container = (
2020
flexDirection: horizontal ? "row" : "column",
2121
alignItems: "center",
2222
justifyContent: "space-evenly",
23-
shadowRadius: 5,
24-
shadowOpacity: 0.3,
23+
shadowRadius: 8,
24+
shadowOpacity: 0.2,
2525
shadowColor: "#000",
26-
elevation: 5,
26+
elevation: 2,
2727
shadowOffset: {
2828
width: 0,
2929
height: 3,
@@ -71,7 +71,7 @@ export const _decreaseButtonStyle = (
7171
export default StyleSheet.create<Style>({
7272
textInputStyle: {
7373
width: 40,
74-
height: 40,
74+
minHeight: 40,
7575
fontSize: 24,
7676
marginTop: 12,
7777
marginBottom: 8,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-counter-input",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "Counter Input with fully customizable options for React Native",
55
"main": "./build/dist/CounterInput.js",
66
"repository": "[email protected]:WrathChaos/react-native-counter-input.git",

0 commit comments

Comments
 (0)