Core (required)
Steps
1. Add package
yarn add @rn-matrix/core@alphanpm i @rn-matrix/core@alpha --save2. Add peer dependencies
yarn add react-native-localize @react-native-community/async-storage node-libs-react-native react-native-randombytesnpm i react-native-localize @react-native-community/async-storage node-libs-react-native react-native-randombytes --save3. Add postinstall script
"postinstall": "sed -i '' '$s/}/,\"browser\":{\"fs\":\"react-native-level-fs\"}}/' node_modules/olm/package.json"
Copy4. Add or edit the metro.config.js file
// metro.config.js
module.exports = {
resolver: {
extraNodeModules: require('node-libs-react-native'),
},
}; 5. Require globals and polyfill URL
6. Install Pods
7. Run postinstall script
8. Proguard (Android)
9. Initialize auth
Last updated