rili-live / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
42 stars 54 forks source link

Syntax error on import #11

Closed Cleanchristian closed 2 years ago

Cleanchristian commented 3 years ago

I get this mistake when importing to a React file:

./node_modules/@react-native-picker/picker/js/Picker.web.js SyntaxError: .../node_modules/@react-native-picker/picker/js/Picker.web.js: Unexpected token (10:12)

8 | import * as React from 'react'; 9 | import {forwardRef, useRef} from 'react';

10 | import type {ViewProps} from 'react-native-web/src/exports/View/types'; | ^ 11 | import type {GenericStyleProp} from 'react-native-web/src/types'; 12 | import type {TextStyle} from 'react-native-web/src/exports/Text/types';

rililive commented 2 years ago

This is related to your environment configuration and not related to this package