Skip to content

Commit ca1b942

Browse files
committed
New Prop: defaultCharCount. New Example
1 parent cd9b8d4 commit ca1b942

9 files changed

Lines changed: 1121 additions & 1094 deletions

File tree

example/.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
bracketSpacing: false,
3+
jsxBracketSameLine: true,
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
};

example/App.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
import React, { Fragment } from "react";
2-
import { SafeAreaView } from "react-native";
1+
import React, {Fragment} from 'react';
2+
import {SafeAreaView} from 'react-native';
33

4-
import TextArea from "@freakycoder/react-native-text-area";
4+
import TextArea from '@freakycoder/react-native-text-area';
55

66
const App = () => {
77
return (
88
<Fragment>
99
<SafeAreaView>
1010
<TextArea
1111
maxCharLimit={50}
12-
style={{ height: 350 }}
12+
style={{height: 350}}
13+
defaultCharCount={100}
1314
placeholderTextColor="black"
1415
exceedCharCountColor="#990606"
15-
placeholder={"Write your review..."}
16+
placeholder={'Write your review...'}
1617
/>
1718
</SafeAreaView>
1819
</Fragment>

0 commit comments

Comments
 (0)