1.0.1 • Published 27 days ago

react-native-sms-auto-read v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
27 days ago

react-native-sms-auto-read

This package will automatically read sms Only supported in Android

Installation

npm install react-native-sms-auto-read

Usage

import { useSmsUserConsent } from 'react-native-sms-auto-read';

const Example = () => {
  const [code, setCode] = useState();

  const retrievedCode = useSmsUserConsent();

  useEffect(() => {
    if (retrievedCode) setCode(retrievedCode);
  }, [retrievedCode]);

  return <TextInput value={code} onChangeText={setCode} />;
};

// ...

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

1.0.1

27 days ago

1.0.0

1 year ago