unicorn-demo-app 7.2.0 → 7.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unicorn-demo-app",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "main": "src/index.js",
5
5
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
6
6
  "license": "MIT",
@@ -1,15 +1,15 @@
1
1
  import _ from 'lodash';
2
2
  import React, {Component} from 'react';
3
- import {TextInput, StyleSheet, ScrollView, ActivityIndicator} from 'react-native';
4
- import {Assets, Colors, Spacings, Typography, View, Text, Button, Keyboard, TextField, TextFieldMethods} from 'react-native-ui-lib'; //eslint-disable-line
3
+ import {StyleSheet, ScrollView, ActivityIndicator} from 'react-native';
4
+ import {Assets, Colors, Spacings, Typography, View, Text, Button, Keyboard, TextField, TextFieldRef} from 'react-native-ui-lib'; //eslint-disable-line
5
5
  const {KeyboardAwareInsetsView} = Keyboard;
6
6
 
7
7
  const priceFormatter = Intl.NumberFormat('en-US');
8
8
 
9
9
  export default class TextFieldScreen extends Component {
10
- input = React.createRef<TextInput>();
11
- input2 = React.createRef<TextInput>();
12
- inputWithValidation = React.createRef<TextFieldMethods>();
10
+ input = React.createRef<TextFieldRef>();
11
+ input2 = React.createRef<TextFieldRef>();
12
+ inputWithValidation = React.createRef<TextFieldRef>();
13
13
  state = {
14
14
  errorPosition: TextField.validationMessagePositions.TOP,
15
15
  shouldDisable: false,
@@ -162,7 +162,6 @@ export default class TextFieldScreen extends Component {
162
162
 
163
163
  <View row top marginT-s4>
164
164
  <TextField
165
- // @ts-expect-error
166
165
  ref={this.inputWithValidation}
167
166
  placeholder="Enter full name"
168
167
  validate="required"