Skip to content

psvysakh/react-native-sms-auto-read

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published