It is not possible to link a react-native library to another react-native library.
So the correct procedure is to add any third party react-native library, that requires link, that you want to use inside your own react-native library, as peerDependency on package.json.
This way the third party lib will be installed directly at the app, and will be linked, necessarily to the app, but the logic using the third party lib will be inside your own.
So you can create a lib, add react-native-geo-fence as peerDependency of your lib, then code as you wish.
After this, the app using your lib, will have to install it and link manually the react-native-geo-fence, then that's it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…