<commit_before>
# react-native-cloudinary

## Getting started

`$ npm install react-native-cloudinary --save`

### Mostly automatic installation

`$ react-native link react-native-cloudinary`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-cloudinary` and add `RNCloudinary.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNCloudinary.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNCloudinaryPackage;` to the imports at the top of the file
  - Add `new RNCloudinaryPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-cloudinary'
  	project(':react-native-cloudinary').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-cloudinary/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-cloudinary')
  	```

## Usage
```javascript
import RNCloudinary from 'react-native-cloudinary';

1. Config
   ```
   RNCloudinary.config(CLOUD_NAME, API_KEY, API_SECRET, PRESET_NAME);
   ```
2. Upload image
    Use the Uri file path for uploading the image to the Cloudinary cloud service.

    ```
    RNCloudinary.uploadImage(filePath).then(data => {
      ...
    })
    .catch(err => {
      ...
    });
    ```

// TODO: What to do with the module?
```
  <commit_msg>Read me file change<commit_after>
# react-native-cloudinary

## Getting started

`$ npm install react-native-cloudinary --save`

### Mostly automatic installation

`$ react-native link react-native-cloudinary`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-cloudinary` and add `RNCloudinary.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNCloudinary.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNCloudinaryPackage;` to the imports at the top of the file
  - Add `new RNCloudinaryPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-cloudinary'
  	project(':react-native-cloudinary').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-cloudinary/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-cloudinary')
  	```

## Usage
```javascript
import RNCloudinary from 'react-native-cloudinary';

1. Config
   RNCloudinary.config(CLOUD_NAME, API_KEY, API_SECRET, PRESET_NAME);
2. Upload image
    Use the Uri file path for uploading the image to the Cloudinary cloud service.
    RNCloudinary.uploadImage(filePath).then(data => {
      ...
    })
    .catch(err => {
      ...
    });

// TODO: What to do with the module?
```
  
{'fraction_non_alphanumeric': 0.13144709696433834, 'fraction_numerical': 0.005305039787798408, 'mean_word_length': 3.8416547788873037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6825415', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1057, 'n_words': 327}