What are the steps to publish a react native library with native codes (Java and Objective C)

Solution 1:

If you have completed all the tests, you can do this with a simple library.

that is create-react-native-library

This is shown in the official document of react-native.

You can also use create-react-native-module, a library with multiple added functions based on react-native-create-library