https://github.com/standardnotes/standard-notes-rn
https://github.com/standardnotes/standard-notes-rn
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/standardnotes/standard-notes-rn
- Owner: standardnotes
- Created: 2019-10-10T20:48:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T02:36:18.000Z (almost 4 years ago)
- Last Synced: 2025-03-20T21:43:28.129Z (11 months ago)
- Language: Java
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# standard-notes-rn
## Setup
```bash
npm install @standardnotes/react-native-utils --save
react-native link @standardnotes/react-native-utils
```
#### iOS
* Add SNReactNative.xcoderproj into your project in the Libraries folder.
* Add the .a file on the General tab of your target under Linked Frameworks And Libraries
* Add the .a file on the Build Phases tab of your target under Link Binary With Libraries
#### Android
* In the settings.gradle
```
include ':@standardnotes/react-native-utils', ':app'
project(':@standardnotes/react-native-utils').projectDir = new File(rootProject.projectDir, '../node_modules/@standardnotes/react-native-utils/android')
```
* In the build.gradle
```
compile project(':@standardnotes/react-native-utils')
```
* In MainApplication.java
```
import org.standardnotes.SNReactNative.SNReactNativePackage;
...
@Override
protected List getPackages() {
return Arrays.asList(
...
new SNReactNativePackage(),
...
);
}
...
```
## Usage
```javascript
import SNReactNative from '@standardnotes/react-native-utils';
...
SNReactNative.exitApp();
...
```