<commit_before># ReactNativeiMessageApp
React Native enabled Xcode template for iMessage App using BundleBus
<img src="https://github.com/zenome/ReactNativeiMessageApp/blob/master/screenshot/iMessage_with_BundleBus.png" alt="iMessageApp with Bundlebus" width="400" />

ReactNativeiMessageApp is a Xcode template project for iMessage Application which has enabled the React Native and BundleBus.

# How to
1. Run [BundleBus_backend](https://github.com/zenome/BundleBus_backend).
2. Download repository and install npm modules.
~~~~
$> cd ReactNativeiMessageApp
$> npm install
~~~~
3. Open the Xcode project
4. Modify appkey and moduleName in MessagesViewController.m
```objectivec
    NSString *appKey = @"YOUR_BUNDLEBUS_APP_KEY";
    BundleBus *bundlebus = [[BundleBus alloc] init];
    [bundlebus silentUpdate:appKey];
```
```objectivec
    RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                        moduleName:@"YOUR_REACTNATIVE_APP_NAME"
                                                 initialProperties:nil
                                                     launchOptions:nil];

```
5. Build<commit_msg>modified README.md<commit_after># ReactNativeiMessageApp
React Native enabled Xcode template for iMessage App using BundleBus
<img src="https://github.com/zenome/ReactNativeiMessageApp/blob/master/screenshot/iMessage_with_BundleBus.png" alt="iMessageApp with Bundlebus" width="400" />

ReactNativeiMessageApp is a Xcode template project for iMessage Application which has enabled the React Native and BundleBus.

# How to
- Run [BundleBus_backend](https://github.com/zenome/BundleBus_backend).
- Download repository and install npm modules.
~~~~
$> cd ReactNativeiMessageApp
$> npm install
~~~~
- Open the Xcode project
- Modify appkey and moduleName in MessagesViewController.m
```objectivec
    NSString *appKey = @"YOUR_BUNDLEBUS_APP_KEY";
    BundleBus *bundlebus = [[BundleBus alloc] init];
    [bundlebus silentUpdate:appKey];
```
```objectivec
    RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                        moduleName:@"YOUR_REACTNATIVE_APP_NAME"
                                                 initialProperties:nil
                                                     launchOptions:nil];

```
- Build
{'fraction_non_alphanumeric': 0.08649789029535865, 'fraction_numerical': 0.004641350210970464, 'mean_word_length': 2.9715242881072026, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1902099', 'n_tokens_mistral': 650, 'n_tokens_neox': 615, 'n_words': 165}