enriched-text-input 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,6 +28,39 @@ In theory, by only using JavaScript we are able to provide better cross-platform
|
|
|
28
28
|
## Known limitations
|
|
29
29
|
- Inline images.
|
|
30
30
|
|
|
31
|
+
## Installation
|
|
32
|
+
```
|
|
33
|
+
npm install enriched-text-input
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
```js
|
|
38
|
+
import { useRef, useState } from 'react';
|
|
39
|
+
import { StyleSheet, View } from 'react-native';
|
|
40
|
+
|
|
41
|
+
import { RichTextInput, Toolbar } from 'enriched-text-input';
|
|
42
|
+
|
|
43
|
+
export default function App() {
|
|
44
|
+
const richTextInputRef = useRef(null);
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<View style={styles.container}>
|
|
48
|
+
<RichTextInput ref={richTextInputRef}/>
|
|
49
|
+
<Toolbar richTextInputRef={richTextInputRef} />
|
|
50
|
+
</View>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const styles = StyleSheet.create({
|
|
55
|
+
container: {
|
|
56
|
+
flex: 1,
|
|
57
|
+
backgroundColor: '#fff',
|
|
58
|
+
paddingTop: 120
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
|
|
31
64
|
## Contributing
|
|
32
65
|
|
|
33
66
|
### Clone this repo
|