packages = new PackageList(this).getPackages();
29 | // Packages that cannot be autolinked yet can be added manually here, for ReactNativeMentionsInputExample:
30 | // packages.add(new MyReactNativePackage());
31 | packages.add(new ReactNativeMentionsInputPackage());
32 |
33 | return packages;
34 | }
35 |
36 | @Override
37 | protected String getJSMainModuleName() {
38 | return "index";
39 | }
40 | };
41 |
42 | @Override
43 | public ReactNativeHost getReactNativeHost() {
44 | return mReactNativeHost;
45 | }
46 |
47 | @Override
48 | public void onCreate() {
49 | super.onCreate();
50 | SoLoader.init(this, /* native exopackage */ false);
51 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); // Remove this line if you don't want Flipper enabled
52 | }
53 |
54 | /**
55 | * Loads Flipper in React Native templates.
56 | *
57 | * @param context
58 | */
59 | private static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
60 | if (BuildConfig.DEBUG) {
61 | try {
62 | /*
63 | We use reflection here to pick up the class that initializes Flipper,
64 | since Flipper library is not available in release mode
65 | */
66 | Class> aClass = Class.forName("com.lowkeyreactnativementionsinputExample.ReactNativeFlipper");
67 | aClass
68 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
69 | .invoke(null, context, reactInstanceManager);
70 | } catch (ClassNotFoundException e) {
71 | e.printStackTrace();
72 | } catch (NoSuchMethodException e) {
73 | e.printStackTrace();
74 | } catch (IllegalAccessException e) {
75 | e.printStackTrace();
76 | } catch (InvocationTargetException e) {
77 | e.printStackTrace();
78 | }
79 | }
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/example/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '12.1'
2 | require_relative '../node_modules/react-native/scripts/react_native_pods'
3 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
4 |
5 | target 'ReactNativeMentionsInputExample' do
6 | config = use_native_modules!
7 | use_react_native!(
8 | :path => config[:reactNativePath],
9 | # to enable hermes on iOS, change `false` to `true` and then install pods
10 | :hermes_enabled => false
11 | )
12 |
13 | # Pods for ReactNativeMentionsInputExample
14 | # pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
15 | # pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
16 | # pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
17 | # pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
18 | # pod 'React', :path => '../node_modules/react-native/'
19 | # pod 'React-Core', :path => '../node_modules/react-native/'
20 | # pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
21 | # pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
22 | # pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
23 | # pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
24 | # pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
25 | # pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
26 | # pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
27 | # pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
28 | # pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
29 | # pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
30 | # pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
31 | # pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
32 | #
33 | # pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
34 | # pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
35 | # pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
36 | # pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
37 | # pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
38 | # pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
39 | # pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true
40 | #
41 | # pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
42 | # pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
43 | # pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
44 |
45 |
46 | use_native_modules!
47 |
48 | # Enables Flipper.
49 | #
50 | # Note that if you have use_frameworks! enabled, Flipper will not work and
51 | # you should disable these next few lines.
52 | # add_flipper_pods!
53 | use_flipper!
54 | post_install do |installer|
55 | flipper_post_install(installer)
56 | end
57 | end
58 |
--------------------------------------------------------------------------------
/example/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem http://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
34 |
35 | @rem Find java.exe
36 | if defined JAVA_HOME goto findJavaFromJavaHome
37 |
38 | set JAVA_EXE=java.exe
39 | %JAVA_EXE% -version >NUL 2>&1
40 | if "%ERRORLEVEL%" == "0" goto init
41 |
42 | echo.
43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
44 | echo.
45 | echo Please set the JAVA_HOME variable in your environment to match the
46 | echo location of your Java installation.
47 |
48 | goto fail
49 |
50 | :findJavaFromJavaHome
51 | set JAVA_HOME=%JAVA_HOME:"=%
52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
53 |
54 | if exist "%JAVA_EXE%" goto init
55 |
56 | echo.
57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
58 | echo.
59 | echo Please set the JAVA_HOME variable in your environment to match the
60 | echo location of your Java installation.
61 |
62 | goto fail
63 |
64 | :init
65 | @rem Get command-line arguments, handling Windows variants
66 |
67 | if not "%OS%" == "Windows_NT" goto win9xME_args
68 |
69 | :win9xME_args
70 | @rem Slurp the command line arguments.
71 | set CMD_LINE_ARGS=
72 | set _SKIP=2
73 |
74 | :win9xME_args_slurp
75 | if "x%~1" == "x" goto execute
76 |
77 | set CMD_LINE_ARGS=%*
78 |
79 | :execute
80 | @rem Setup the command line
81 |
82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
83 |
84 | @rem Execute Gradle
85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
86 |
87 | :end
88 | @rem End local scope for the variables with windows NT shell
89 | if "%ERRORLEVEL%"=="0" goto mainEnd
90 |
91 | :fail
92 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
93 | rem the _cmd.exe /c_ return code!
94 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
95 | exit /b 1
96 |
97 | :mainEnd
98 | if "%OS%"=="Windows_NT" endlocal
99 |
100 | :omega
101 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/java/com/example/lowkeyreactnativementionsinput/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the LICENSE file in the root
5 | * directory of this source tree.
6 | */
7 | package com.example.lowkeyreactnativementionsinput;
8 |
9 | import android.content.Context;
10 | import com.facebook.flipper.android.AndroidFlipperClient;
11 | import com.facebook.flipper.android.utils.FlipperUtils;
12 | import com.facebook.flipper.core.FlipperClient;
13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22 | import com.facebook.react.ReactInstanceManager;
23 | import com.facebook.react.bridge.ReactContext;
24 | import com.facebook.react.modules.network.NetworkingModule;
25 | import okhttp3.OkHttpClient;
26 |
27 | public class ReactNativeFlipper {
28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
29 | if (FlipperUtils.shouldEnableFlipper(context)) {
30 | final FlipperClient client = AndroidFlipperClient.getInstance(context);
31 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
32 | client.addPlugin(new ReactFlipperPlugin());
33 | client.addPlugin(new DatabasesFlipperPlugin(context));
34 | client.addPlugin(new SharedPreferencesFlipperPlugin(context));
35 | client.addPlugin(CrashReporterPlugin.getInstance());
36 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
37 | NetworkingModule.setCustomClientBuilder(
38 | new NetworkingModule.CustomClientBuilder() {
39 | @Override
40 | public void apply(OkHttpClient.Builder builder) {
41 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
42 | }
43 | });
44 | client.addPlugin(networkFlipperPlugin);
45 | client.start();
46 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
47 | // Hence we run if after all native modules have been initialized
48 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
49 | if (reactContext == null) {
50 | reactInstanceManager.addReactInstanceEventListener(
51 | new ReactInstanceManager.ReactInstanceEventListener() {
52 | @Override
53 | public void onReactContextInitialized(ReactContext reactContext) {
54 | reactInstanceManager.removeReactInstanceEventListener(this);
55 | reactContext.runOnNativeModulesQueueThread(
56 | new Runnable() {
57 | @Override
58 | public void run() {
59 | client.addPlugin(new FrescoFlipperPlugin());
60 | }
61 | });
62 | }
63 | });
64 | } else {
65 | client.addPlugin(new FrescoFlipperPlugin());
66 | }
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/example/ios/ReactNativeMentionsInputExample/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@lowkey/react-native-mentions-input",
3 | "version": "2.0.10",
4 | "description": "Mentions input",
5 | "main": "lib/commonjs/index",
6 | "module": "lib/module/index",
7 | "types": "lib/typescript/src/index.d.ts",
8 | "react-native": "src/index",
9 | "source": "src/index",
10 | "files": [
11 | "src",
12 | "lib",
13 | "android",
14 | "ios",
15 | "cpp",
16 | "lowkey-react-native-mentions-input.podspec",
17 | "!lib/typescript/example",
18 | "!**/__tests__",
19 | "!**/__fixtures__",
20 | "!**/__mocks__"
21 | ],
22 | "scripts": {
23 | "test": "jest",
24 | "typescript": "tsc --noEmit",
25 | "lint": "eslint \"**/*.{js,ts,tsx}\" --fix",
26 | "prepare": "bob build",
27 | "release": "release-it",
28 | "example": "yarn --cwd example",
29 | "pods": "cd example && pod-install --quiet",
30 | "bootstrap": "yarn example && yarn && yarn pods"
31 | },
32 | "keywords": [
33 | "react-native",
34 | "ios",
35 | "android"
36 | ],
37 | "repository": "https://github.com/max-prokopenko/lowkey-react-native-mentions-input",
38 | "author": "Max Prokopenko (https://github.com/max-prokopenko)",
39 | "license": "MIT",
40 | "bugs": {
41 | "url": "https://github.com/max-prokopenko/lowkey-react-native-mentions-input/issues"
42 | },
43 | "homepage": "https://github.com/max-prokopenko/lowkey-react-native-mentions-input#readme",
44 | "devDependencies": {
45 | "@commitlint/config-conventional": "^8.3.4",
46 | "@react-native-community/bob": "^0.16.2",
47 | "@react-native-community/eslint-config": "^2.0.0",
48 | "@release-it/conventional-changelog": "^1.1.4",
49 | "@types/jest": "^26.0.0",
50 | "@types/react": "^16.9.19",
51 | "@types/react-native": "0.62.13",
52 | "@types/string.prototype.matchall": "^4.0.0",
53 | "commitlint": "^8.3.5",
54 | "eslint": "^7.2.0",
55 | "eslint-config-prettier": "^6.11.0",
56 | "eslint-plugin-prettier": "^3.1.3",
57 | "husky": "^4.2.5",
58 | "jest": "^26.0.1",
59 | "pod-install": "^0.1.0",
60 | "prettier": "^2.0.5",
61 | "react": "16.11.0",
62 | "react-native": "0.62.2",
63 | "release-it": "^13.5.8",
64 | "typescript": "^3.8.3"
65 | },
66 | "peerDependencies": {
67 | "react": "*",
68 | "react-native": "*"
69 | },
70 | "jest": {
71 | "preset": "react-native",
72 | "modulePathIgnorePatterns": [
73 | "/example/node_modules",
74 | "/lib/"
75 | ]
76 | },
77 | "husky": {
78 | "hooks": {
79 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
80 | "pre-commit": "yarn lint && yarn typescript"
81 | }
82 | },
83 | "commitlint": {
84 | "extends": [
85 | "@commitlint/config-conventional"
86 | ]
87 | },
88 | "release-it": {
89 | "git": {
90 | "commitMessage": "chore: release ${version}",
91 | "tagName": "v${version}"
92 | },
93 | "npm": {
94 | "publish": true
95 | },
96 | "github": {
97 | "release": true
98 | },
99 | "plugins": {
100 | "@release-it/conventional-changelog": {
101 | "preset": "angular"
102 | }
103 | }
104 | },
105 | "eslintConfig": {
106 | "extends": [
107 | "@react-native-community",
108 | "prettier"
109 | ],
110 | "rules": {
111 | "prettier/prettier": [
112 | "error",
113 | {
114 | "quoteProps": "consistent",
115 | "singleQuote": true,
116 | "tabWidth": 2,
117 | "trailingComma": "es5",
118 | "useTabs": false
119 | }
120 | ]
121 | }
122 | },
123 | "eslintIgnore": [
124 | "node_modules/",
125 | "lib/"
126 | ],
127 | "prettier": {
128 | "quoteProps": "consistent",
129 | "singleQuote": true,
130 | "tabWidth": 2,
131 | "trailingComma": "es5",
132 | "useTabs": false
133 | },
134 | "@react-native-community/bob": {
135 | "source": "src",
136 | "output": "lib",
137 | "targets": [
138 | "commonjs",
139 | "module",
140 | "typescript"
141 | ]
142 | },
143 | "dependencies": {
144 | "string.prototype.matchall": "^4.0.2"
145 | }
146 | }
147 |
--------------------------------------------------------------------------------
/example/ios/ReactNativeMentionsInputExample.xcodeproj/xcshareddata/xcschemes/ReactNativeMentionsInputExample.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
51 |
52 |
53 |
54 |
64 |
66 |
72 |
73 |
74 |
75 |
81 |
83 |
89 |
90 |
91 |
92 |
94 |
95 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # @lowkey/react-native-mentions-input
2 |
3 | Mentions input for tagging user (@username).
4 |
5 | #### 2.0.0 Update
6 |
7 | 2.0.0 update `@lowkey/react-native-mentions-input`:
8 | Thanks to [@evgenusov](https://github.com/evgenusov) for refactoring and optimising this library!
9 |
10 | ## Installation
11 |
12 | ```sh
13 | npm install @lowkey/react-native-mentions-input
14 | ```
15 |
16 | or
17 |
18 | ```sh
19 | yarn add @lowkey/react-native-mentions-input
20 | ```
21 |
22 | ## Usage
23 |
24 | ```js
25 | import MentionsInput, {parseMarkdown} from '@lowkey/react-native-mentions-input';
26 | ```
27 |
28 | ### Input
29 |
30 | | Property | Type | Description|
31 | | ------------- | ------------- | ------------- |
32 | | value | string | Value of the input |
33 | | placeholder | string | Placeholder string for input |
34 | | placeholderTextColor | string | Color of placeholder text |
35 | | multiline | boolean | Boolean indicating whether input multiline or not |
36 | | leftComponent | ReactNode | Component rendered on the left side of the input |
37 | | rightComponent | ReactNode | Component rendered on the right side of the input |
38 | | innerComponent | ReactNode | Component rendered inside of the input |
39 | | textInputStyle | ViewStyle | Style of the input (TextInput) |
40 | | suggestedUsersComponent | ReactNode | Component for suggested users triggered by @ |
41 | | users | { id: string; name: string; avatar: string; } [] | List of users to be suggested in suggestedUsersComponent |
42 |
43 | ```js
44 | setMarkdown(markdown)}
48 | onFocusStateChange={(isFocused: booldean) => console.log('Input is focused', isFocused )}
49 | mentionStyle={styles.mentionStyle}
50 | textInputStyle={styles.textInputStyle}
51 | users={[
52 | {
53 | id: '5f5f2b120a958f2e6b2ff0d1',
54 | name: 'The Maximus The Bestus',
55 | avatar:
56 | 'https://images.pexels.com/photos/1561020/pexels-photo-1561020.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=50',
57 | },
58 | ]}
59 | suggestedUsersComponent={(users, addMentions) => (
60 |
72 | {users.map((user: any) => (
73 | addMentions(user)}>
74 |
75 |
79 | {user.name}
80 |
81 |
82 | ))}
83 |
84 | )}
85 | />
86 | ```
87 |
88 | ### Parsing markdown
89 | #### parseMarkdown(markdown, mentionStyle)
90 | `onMarkdownChange` returns markdown of the input. To parse the markdown use helper function `parseMarkdown`, which parses markdown into array of `` nodes.
91 |
92 | URL are parssed to `` node, which open parsed URL with `Linking.openURL()`
93 |
94 | | Argument | Type | Description|
95 | | ------------- | ------------- | ------------- |
96 | | markdown | string | Markdown string to be parsed |
97 | | mentionStyle | TextStyle | Style of parsed mentions |
98 | | urlStyle | TextStyle | Style of parsed urls |
99 |
100 | ```js
101 |
102 | Parsed Text
103 | {parseMarkdown(markdown, styles.mentionStyle)}
104 |
105 | ```
106 |
107 | ### Example Styles
108 |
109 | ```js
110 | const styles = StyleSheet.create({
111 | container: {
112 | flex: 1,
113 | alignItems: 'center',
114 | justifyContent: 'center',
115 | backgroundColor: '#f5f5f5',
116 | },
117 | textInputStyle: {
118 | backgroundColor: '#fff',
119 | width: width * 0.8,
120 | height: USER_ITEM_HEIGHT,
121 | borderRadius: 5,
122 | paddingHorizontal: 10,
123 | borderColor: '#c1c1c1',
124 | borderWidth: StyleSheet.hairlineWidth,
125 | },
126 | suggestedUserComponentImageStyle: {
127 | width: USER_ITEM_HEIGHT * 0.65,
128 | height: USER_ITEM_HEIGHT * 0.65,
129 | backgroundColor: '#f1f1f1',
130 | borderRadius: 10,
131 | marginRight: 5,
132 | },
133 | suggestedUserComponentStyle: {
134 | alignItems: 'center',
135 | paddingHorizontal: 10,
136 | height: USER_ITEM_HEIGHT,
137 | flexDirection: 'row',
138 | },
139 | mentionStyle: {
140 | fontWeight: '500',
141 | color: 'blue',
142 | },
143 |
144 | // Example styles
145 | sendButtonStyle: {
146 | marginTop: 20,
147 | width: 100,
148 | height: 40,
149 | justifyContent: 'center',
150 | alignItems: 'center',
151 | backgroundColor: '#efefef',
152 | borderRadius: 15,
153 | },
154 | exampleContainer: {
155 | alignSelf: 'stretch',
156 | flexDirection: 'column',
157 | paddingHorizontal: 30,
158 | marginVertical: 30,
159 | },
160 | exampleHeader: {
161 | fontWeight: '700',
162 | }
163 | });
164 | ```
165 |
166 | ## Contributing
167 |
168 | See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
169 |
170 |
--------------------------------------------------------------------------------
/example/src/App.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react';
2 | import {
3 | StyleSheet,
4 | View,
5 | Text,
6 | Dimensions,
7 | TouchableOpacity,
8 | Image,
9 | Animated,
10 | } from 'react-native';
11 | import {
12 | MentionsInput,
13 | parseMarkdown,
14 | } from '@lowkey/react-native-mentions-input';
15 |
16 | const { width } = Dimensions.get('window');
17 |
18 | export default function App() {
19 | const [value, onChangeText] = React.useState('');
20 | const [markdown, setMarkdown] = React.useState('');
21 |
22 | return (
23 |
24 |
28 | console.log('input focused is focused', focused)
29 | }
30 | value={value}
31 | onTextChange={onChangeText}
32 | onMarkdownChange={(mrkdwn: string) => setMarkdown(mrkdwn)}
33 | mentionStyle={styles.mentionStyle}
34 | textInputStyle={styles.textInputStyle}
35 | users={[
36 | {
37 | id: '5f5f2b120a958f2e6b2ff0d1',
38 | name: 'The Maximus The Bestus',
39 | avatar:
40 | 'https://images.pexels.com/photos/1561020/pexels-photo-1561020.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=50',
41 | },
42 | {
43 | id: '5f5f2b120a958f2e6b2ff0d1',
44 | name: 'Joni T',
45 | avatar:
46 | 'https://images.pexels.com/photos/917494/pexels-photo-917494.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=50',
47 | },
48 | {
49 | id: '5f5f2b120a958f2e6b2ff0d1',
50 | name: 'ville',
51 | avatar:
52 | 'https://images.pexels.com/photos/1072179/pexels-photo-1072179.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=50',
53 | },
54 | ]}
55 | suggestedUsersComponent={(users: Array, addMentions: any) => {
56 | return (
57 |
61 | );
62 | }}
63 | />
64 |
65 | Parsed Text
66 |
67 | {parseMarkdown(markdown, styles.mentionStyle, styles.urlStyle)}
68 |
69 |
70 |
71 | Markdown
72 | {markdown}
73 |
74 |
75 | );
76 | }
77 |
78 | const SuggestedUserComponentStyle = ({ users, addMentions }: any) => {
79 | const [color] = React.useState(
80 | `#${Math.floor(Math.random() * 16777215).toString(16)}`
81 | );
82 |
83 | const fadeAnim = React.useRef(new Animated.Value(0)).current; // Initial value for scale: 0
84 |
85 | React.useEffect(() => {
86 | Animated.timing(fadeAnim, {
87 | toValue: 1,
88 | duration: 300,
89 | useNativeDriver: true,
90 | }).start();
91 | }, [fadeAnim]);
92 |
93 | return (
94 |
100 | {users.map((user: any, index: number) => (
101 | addMentions(user)}
103 | key={index.toString()}
104 | >
105 |
115 |
119 | {user.name}
120 |
121 |
122 | ))}
123 |
124 | );
125 | };
126 |
127 | const USER_ITEM_HEIGHT = 50;
128 |
129 | const styles = StyleSheet.create({
130 | container: {
131 | flex: 1,
132 | alignItems: 'center',
133 | justifyContent: 'center',
134 | backgroundColor: '#f5f5f5',
135 | },
136 | textInputStyle: {
137 | backgroundColor: '#fff',
138 | width: width * 0.8,
139 | height: USER_ITEM_HEIGHT,
140 | borderRadius: 5,
141 | paddingHorizontal: 10,
142 | borderColor: '#c1c1c1',
143 | color: '#000',
144 | borderWidth: StyleSheet.hairlineWidth,
145 | },
146 | textInputTextStyle: {},
147 | suggestedUserComponentImageStyle: {
148 | width: USER_ITEM_HEIGHT * 0.65,
149 | height: USER_ITEM_HEIGHT * 0.65,
150 | backgroundColor: '#f1f1f1',
151 | borderRadius: 10,
152 | marginRight: 5,
153 | },
154 | suggestedUserComponentContainer: {
155 | alignSelf: 'stretch',
156 | backgroundColor: '#fff',
157 | borderTopLeftRadius: 10,
158 | borderTopRightRadius: 10,
159 | position: 'absolute',
160 | left: 0,
161 | right: 0,
162 | },
163 | suggestedUserComponentStyle: {
164 | alignItems: 'center',
165 | paddingHorizontal: 10,
166 | height: USER_ITEM_HEIGHT,
167 | flexDirection: 'row',
168 | },
169 | mentionStyle: {
170 | fontWeight: '400',
171 | color: 'blue',
172 | },
173 | urlStyle: {
174 | fontWeight: '400',
175 | color: 'blue',
176 | textDecorationLine: 'underline',
177 | },
178 | // Example styles
179 | sendButtonStyle: {
180 | marginTop: 20,
181 | width: 100,
182 | height: 40,
183 | justifyContent: 'center',
184 | alignItems: 'center',
185 | backgroundColor: '#efefef',
186 | borderRadius: 15,
187 | },
188 | exampleContainer: {
189 | alignSelf: 'stretch',
190 | flexDirection: 'column',
191 | paddingHorizontal: 30,
192 | marginVertical: 30,
193 | },
194 | exampleHeader: {
195 | fontWeight: '700',
196 | },
197 | });
198 |
--------------------------------------------------------------------------------
/example/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 | # Determine the Java command to use to start the JVM.
86 | if [ -n "$JAVA_HOME" ] ; then
87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
88 | # IBM's JDK on AIX uses strange locations for the executables
89 | JAVACMD="$JAVA_HOME/jre/sh/java"
90 | else
91 | JAVACMD="$JAVA_HOME/bin/java"
92 | fi
93 | if [ ! -x "$JAVACMD" ] ; then
94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
95 |
96 | Please set the JAVA_HOME variable in your environment to match the
97 | location of your Java installation."
98 | fi
99 | else
100 | JAVACMD="java"
101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
102 |
103 | Please set the JAVA_HOME variable in your environment to match the
104 | location of your Java installation."
105 | fi
106 |
107 | # Increase the maximum file descriptors if we can.
108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
109 | MAX_FD_LIMIT=`ulimit -H -n`
110 | if [ $? -eq 0 ] ; then
111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
112 | MAX_FD="$MAX_FD_LIMIT"
113 | fi
114 | ulimit -n $MAX_FD
115 | if [ $? -ne 0 ] ; then
116 | warn "Could not set maximum file descriptor limit: $MAX_FD"
117 | fi
118 | else
119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
120 | fi
121 | fi
122 |
123 | # For Darwin, add options to specify how the application appears in the dock
124 | if $darwin; then
125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
126 | fi
127 |
128 | # For Cygwin, switch paths to Windows format before running java
129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
132 | JAVACMD=`cygpath --unix "$JAVACMD"`
133 |
134 | # We build the pattern for arguments to be converted via cygpath
135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
136 | SEP=""
137 | for dir in $ROOTDIRSRAW ; do
138 | ROOTDIRS="$ROOTDIRS$SEP$dir"
139 | SEP="|"
140 | done
141 | OURCYGPATTERN="(^($ROOTDIRS))"
142 | # Add a user-defined pattern to the cygpath arguments
143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
145 | fi
146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
147 | i=0
148 | for arg in "$@" ; do
149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
151 |
152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
154 | else
155 | eval `echo args$i`="\"$arg\""
156 | fi
157 | i=$((i+1))
158 | done
159 | case $i in
160 | (0) set -- ;;
161 | (1) set -- "$args0" ;;
162 | (2) set -- "$args0" "$args1" ;;
163 | (3) set -- "$args0" "$args1" "$args2" ;;
164 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
165 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
166 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
167 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
168 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
169 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
170 | esac
171 | fi
172 |
173 | # Escape application args
174 | save () {
175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
176 | echo " "
177 | }
178 | APP_ARGS=$(save "$@")
179 |
180 | # Collect all arguments for the java command, following the shell quoting and substitution rules
181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
182 |
183 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
185 | cd "$(dirname "$0")"
186 | fi
187 |
188 | exec "$JAVACMD" "$@"
189 |
--------------------------------------------------------------------------------
/src/utils.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { Text, TextStyle, TouchableWithoutFeedback } from 'react-native';
3 | import matchAll from 'string.prototype.matchall';
4 | import { PATTERNS } from './constants';
5 |
6 | function getKeyComponent() {
7 | var result = '';
8 | var characters =
9 | 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
10 | var charactersLength = characters.length;
11 | for (var i = 0; i < 5; i++) {
12 | result += characters.charAt(Math.floor(Math.random() * charactersLength));
13 | }
14 | return `mention_key_${result}`;
15 | }
16 |
17 | const decodeURIComponentSafely = (uri: string) => {
18 | try {
19 | return decodeURIComponent(uri);
20 | } catch (e) {
21 | console.log('URI Component not decodable: ' + uri);
22 | return uri;
23 | }
24 | };
25 |
26 | export const parseMarkdown = (
27 | text: string,
28 | mentionStyle: TextStyle,
29 | urlStyle?: TextStyle,
30 | handleURL?: (url: string) => void
31 | ) => {
32 | let textToParse = text;
33 | let parsedTextArray: Array = [];
34 | let parseHeadIndex = 0;
35 | let matches = [...matchAll(text, PATTERNS.MENTION)];
36 |
37 | if (matches.length === 0) {
38 | let currentParsable = decodeURIComponentSafely(textToParse);
39 | let matchesURL = [...matchAll(currentParsable, PATTERNS.URL)];
40 | if (matchesURL.length > 0) {
41 | parsedTextArray.push(
42 |
43 | {currentParsable.substring(0, matchesURL[0].index)}
44 |
45 | );
46 | matchesURL.map((url, index) => {
47 | let urlIndex = 0;
48 | if (typeof url.index !== 'undefined') {
49 | urlIndex = url.index;
50 | }
51 | parsedTextArray.push(
52 | (handleURL ? handleURL(url[0]) : null)}
55 | >
56 |
57 | {currentParsable.substring(urlIndex, url[0].length + urlIndex)}
58 |
59 |
60 | );
61 | parsedTextArray.push(
62 |
63 | {currentParsable.substring(
64 | url[0].length +
65 | (typeof url.index !== 'undefined' ? url.index : 0),
66 | index === matchesURL.length - 1
67 | ? currentParsable.length
68 | : matchesURL[index + 1].index
69 | )}
70 |
71 | );
72 | });
73 | } else {
74 | return {decodeURIComponentSafely(textToParse)};
75 | }
76 | return parsedTextArray;
77 | }
78 | matches.map((match, index) => {
79 | const matchedUser = match[0].slice(2, -1);
80 | const mention = {
81 | id: matchedUser.split('::')[1],
82 | name: matchedUser.split('::')[0],
83 | };
84 |
85 | let currentParsable = decodeURIComponentSafely(
86 | textToParse.substring(parseHeadIndex, match.index)
87 | );
88 | let matchesURL = [...matchAll(currentParsable, PATTERNS.URL)];
89 | if (matchesURL.length > 0) {
90 | parsedTextArray.push(
91 |
92 | {currentParsable.substring(0, matchesURL[0].index)}
93 |
94 | );
95 | matchesURL.map((url, index) => {
96 | let urlIndex = 0;
97 | if (typeof url.index !== 'undefined') {
98 | urlIndex = url.index;
99 | }
100 | parsedTextArray.push(
101 | (handleURL ? handleURL(url[0]) : null)}
104 | >
105 |
106 | {currentParsable.substring(urlIndex, url[0].length + urlIndex)}
107 |
108 |
109 | );
110 | parsedTextArray.push(
111 |
112 | {currentParsable.substring(
113 | url[0].length + urlIndex,
114 | index === matchesURL.length - 1
115 | ? currentParsable.length
116 | : matchesURL[index + 1].index
117 | )}
118 |
119 | );
120 | });
121 | } else {
122 | parsedTextArray.push(
123 |
124 | {decodeURIComponentSafely(
125 | textToParse.substring(parseHeadIndex, match.index)
126 | )}
127 |
128 | );
129 | }
130 | parsedTextArray.push(
131 | (handleURL ? handleURL(mention.id) : null)}
133 | >
134 | {`@${decodeURI(
135 | mention.name
136 | )}`}
137 |
138 | );
139 | if (typeof match.index === 'number') {
140 | parseHeadIndex = match.index + match[0].length;
141 | }
142 |
143 | if (index === matches.length - 1) {
144 | let lastParsable = decodeURIComponentSafely(
145 | textToParse.substring(parseHeadIndex, textToParse.length)
146 | );
147 | let matchesURL = [...matchAll(lastParsable, PATTERNS.URL)];
148 | if (matchesURL.length > 0) {
149 | parsedTextArray.push(
150 |
151 | {lastParsable.substring(0, matchesURL[0].index)}
152 |
153 | );
154 | matchesURL.map((url, index) => {
155 | let urlIndex = 0;
156 | if (typeof url.index !== 'undefined') {
157 | urlIndex = url.index;
158 | }
159 | parsedTextArray.push(
160 | (handleURL ? handleURL(url[0]) : null)}
163 | >
164 |
165 | {lastParsable.substring(urlIndex, url[0].length + urlIndex)}
166 |
167 |
168 | );
169 | parsedTextArray.push(
170 |
171 | {lastParsable.substring(
172 | url[0].length + urlIndex,
173 | index === matchesURL.length - 1
174 | ? lastParsable.length
175 | : matchesURL[index + 1].index
176 | )}
177 |
178 | );
179 | });
180 | } else {
181 | parsedTextArray.push(
182 |
183 | {decodeURIComponentSafely(
184 | textToParse.substring(parseHeadIndex, textToParse.length)
185 | )}
186 |
187 | );
188 | }
189 | }
190 | });
191 | return parsedTextArray;
192 | };
193 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project.
4 |
5 | ## Development workflow
6 |
7 | To get started with the project, run `yarn bootstrap` in the root directory to install the required dependencies for each package:
8 |
9 | ```sh
10 | yarn bootstrap
11 | ```
12 |
13 | While developing, you can run the [example app](/example/) to test your changes.
14 |
15 | To start the packager:
16 |
17 | ```sh
18 | yarn example start
19 | ```
20 |
21 | To run the example app on Android:
22 |
23 | ```sh
24 | yarn example android
25 | ```
26 |
27 | To run the example app on iOS:
28 |
29 | ```sh
30 | yarn example ios
31 | ```
32 |
33 | Make sure your code passes TypeScript and ESLint. Run the following to verify:
34 |
35 | ```sh
36 | yarn typescript
37 | yarn lint
38 | ```
39 |
40 | To fix formatting errors, run the following:
41 |
42 | ```sh
43 | yarn lint --fix
44 | ```
45 |
46 | Remember to add tests for your change if possible. Run the unit tests by:
47 |
48 | ```sh
49 | yarn test
50 | ```
51 |
52 | To edit the Objective-C files, open `example/ios/ReactNativeMentionsInputExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > @lowkey/react-native-mentions-input`.
53 |
54 | To edit the Kotlin files, open `example/android` in Android studio and find the source files at `lowkeyreactnativementionsinput` under `Android`.
55 |
56 | ### Commit message convention
57 |
58 | We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages:
59 |
60 | - `fix`: bug fixes, e.g. fix crash due to deprecated method.
61 | - `feat`: new features, e.g. add new method to the module.
62 | - `refactor`: code refactor, e.g. migrate from class components to hooks.
63 | - `docs`: changes into documentation, e.g. add usage example for the module..
64 | - `test`: adding or updating tests, eg add integration tests using detox.
65 | - `chore`: tooling changes, e.g. change CI config.
66 |
67 | Our pre-commit hooks verify that your commit message matches this format when committing.
68 |
69 | ### Linting and tests
70 |
71 | [ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/)
72 |
73 | We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) with [Prettier](https://prettier.io/) for linting and formatting the code, and [Jest](https://jestjs.io/) for testing.
74 |
75 | Our pre-commit hooks verify that the linter and tests pass when committing.
76 |
77 | ### Scripts
78 |
79 | The `package.json` file contains various scripts for common tasks:
80 |
81 | - `yarn bootstrap`: setup project by installing all dependencies and pods.
82 | - `yarn typescript`: type-check files with TypeScript.
83 | - `yarn lint`: lint files with ESLint.
84 | - `yarn test`: run unit tests with Jest.
85 | - `yarn example start`: start the Metro server for the example app.
86 | - `yarn example android`: run the example app on Android.
87 | - `yarn example ios`: run the example app on iOS.
88 |
89 | ### Sending a pull request
90 |
91 | > **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
92 |
93 | When you're sending a pull request:
94 |
95 | - Prefer small pull requests focused on one change.
96 | - Verify that linters and tests are passing.
97 | - Review the documentation to make sure it looks good.
98 | - Follow the pull request template when opening a pull request.
99 | - For pull requests that change the API or implementation, discuss with maintainers first by opening an issue.
100 |
101 | ## Code of Conduct
102 |
103 | ### Our Pledge
104 |
105 | We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
106 |
107 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
108 |
109 | ### Our Standards
110 |
111 | Examples of behavior that contributes to a positive environment for our community include:
112 |
113 | - Demonstrating empathy and kindness toward other people
114 | - Being respectful of differing opinions, viewpoints, and experiences
115 | - Giving and gracefully accepting constructive feedback
116 | - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
117 | - Focusing on what is best not just for us as individuals, but for the overall community
118 |
119 | Examples of unacceptable behavior include:
120 |
121 | - The use of sexualized language or imagery, and sexual attention or
122 | advances of any kind
123 | - Trolling, insulting or derogatory comments, and personal or political attacks
124 | - Public or private harassment
125 | - Publishing others' private information, such as a physical or email
126 | address, without their explicit permission
127 | - Other conduct which could reasonably be considered inappropriate in a
128 | professional setting
129 |
130 | ### Enforcement Responsibilities
131 |
132 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
133 |
134 | Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
135 |
136 | ### Scope
137 |
138 | This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
139 |
140 | ### Enforcement
141 |
142 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly.
143 |
144 | All community leaders are obligated to respect the privacy and security of the reporter of any incident.
145 |
146 | ### Enforcement Guidelines
147 |
148 | Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
149 |
150 | #### 1. Correction
151 |
152 | **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
153 |
154 | **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
155 |
156 | #### 2. Warning
157 |
158 | **Community Impact**: A violation through a single incident or series of actions.
159 |
160 | **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
161 |
162 | #### 3. Temporary Ban
163 |
164 | **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
165 |
166 | **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
167 |
168 | #### 4. Permanent Ban
169 |
170 | **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
171 |
172 | **Consequence**: A permanent ban from any sort of public interaction within the community.
173 |
174 | ### Attribution
175 |
176 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
177 | available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
178 |
179 | Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
180 |
181 | [homepage]: https://www.contributor-covenant.org
182 |
183 | For answers to common questions about this code of conduct, see the FAQ at
184 | https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
185 |
--------------------------------------------------------------------------------
/example/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format
22 | * bundleCommand: "ram-bundle",
23 | *
24 | * // whether to bundle JS and assets in debug mode
25 | * bundleInDebug: false,
26 | *
27 | * // whether to bundle JS and assets in release mode
28 | * bundleInRelease: true,
29 | *
30 | * // whether to bundle JS and assets in another build variant (if configured).
31 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
32 | * // The configuration property can be in the following formats
33 | * // 'bundleIn${productFlavor}${buildType}'
34 | * // 'bundleIn${buildType}'
35 | * // bundleInFreeDebug: true,
36 | * // bundleInPaidRelease: true,
37 | * // bundleInBeta: true,
38 | *
39 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
40 | * // for ReactNativeMentionsInputExample: to disable dev mode in the staging build type (if configured)
41 | * devDisabledInStaging: true,
42 | * // The configuration property can be in the following formats
43 | * // 'devDisabledIn${productFlavor}${buildType}'
44 | * // 'devDisabledIn${buildType}'
45 | *
46 | * // the root of your project, i.e. where "package.json" lives
47 | * root: "../../",
48 | *
49 | * // where to put the JS bundle asset in debug mode
50 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
51 | *
52 | * // where to put the JS bundle asset in release mode
53 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
54 | *
55 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
56 | * // require('./image.png')), in debug mode
57 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
58 | *
59 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
60 | * // require('./image.png')), in release mode
61 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
62 | *
63 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
64 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
65 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
66 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
67 | * // for ReactNativeMentionsInputExample, you might want to remove it from here.
68 | * inputExcludes: ["android/**", "ios/**"],
69 | *
70 | * // override which node gets called and with what additional arguments
71 | * nodeExecutableAndArgs: ["node"],
72 | *
73 | * // supply additional arguments to the packager
74 | * extraPackagerArgs: []
75 | * ]
76 | */
77 |
78 | project.ext.react = [
79 | enableHermes: false, // clean and rebuild if changing
80 | ]
81 |
82 | apply from: "../../node_modules/react-native/react.gradle"
83 |
84 | /**
85 | * Set this to true to create two separate APKs instead of one:
86 | * - An APK that only works on ARM devices
87 | * - An APK that only works on x86 devices
88 | * The advantage is the size of the APK is reduced by about 4MB.
89 | * Upload all the APKs to the Play Store and people will download
90 | * the correct one based on the CPU architecture of their device.
91 | */
92 | def enableSeparateBuildPerCPUArchitecture = false
93 |
94 | /**
95 | * Run Proguard to shrink the Java bytecode in release builds.
96 | */
97 | def enableProguardInReleaseBuilds = false
98 |
99 | /**
100 | * The preferred build flavor of JavaScriptCore.
101 | *
102 | * For ReactNativeMentionsInputExample, to use the international variant, you can use:
103 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
104 | *
105 | * The international variant includes ICU i18n library and necessary data
106 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
107 | * give correct results when using with locales other than en-US. Note that
108 | * this variant is about 6MiB larger per architecture than default.
109 | */
110 | def jscFlavor = 'org.webkit:android-jsc:+'
111 |
112 | /**
113 | * Whether to enable the Hermes VM.
114 | *
115 | * This should be set on project.ext.react and mirrored here. If it is not set
116 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
117 | * and the benefits of using Hermes will therefore be sharply reduced.
118 | */
119 | def enableHermes = project.ext.react.get("enableHermes", false);
120 |
121 | android {
122 | compileSdkVersion rootProject.ext.compileSdkVersion
123 |
124 | compileOptions {
125 | sourceCompatibility JavaVersion.VERSION_1_8
126 | targetCompatibility JavaVersion.VERSION_1_8
127 | }
128 |
129 | defaultConfig {
130 | applicationId "com.example.lowkeyreactnativementionsinput"
131 | minSdkVersion rootProject.ext.minSdkVersion
132 | targetSdkVersion rootProject.ext.targetSdkVersion
133 | versionCode 1
134 | versionName "1.0"
135 | }
136 | splits {
137 | abi {
138 | reset()
139 | enable enableSeparateBuildPerCPUArchitecture
140 | universalApk false // If true, also generate a universal APK
141 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
142 | }
143 | }
144 | signingConfigs {
145 | debug {
146 | storeFile file('debug.keystore')
147 | storePassword 'android'
148 | keyAlias 'androiddebugkey'
149 | keyPassword 'android'
150 | }
151 | }
152 | buildTypes {
153 | debug {
154 | signingConfig signingConfigs.debug
155 | }
156 | release {
157 | // Caution! In production, you need to generate your own keystore file.
158 | // see https://facebook.github.io/react-native/docs/signed-apk-android.
159 | signingConfig signingConfigs.debug
160 | minifyEnabled enableProguardInReleaseBuilds
161 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
162 | }
163 | }
164 | // applicationVariants are e.g. debug, release
165 | applicationVariants.all { variant ->
166 | variant.outputs.each { output ->
167 | // For each separate APK per architecture, set a unique version code as described here:
168 | // https://developer.android.com/studio/build/configure-apk-splits.html
169 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
170 | def abi = output.getFilter(OutputFile.ABI)
171 | if (abi != null) { // null for the universal-debug, universal-release variants
172 | output.versionCodeOverride =
173 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
174 | }
175 |
176 | }
177 | }
178 |
179 | packagingOptions {
180 | pickFirst "lib/armeabi-v7a/libc++_shared.so"
181 | pickFirst "lib/arm64-v8a/libc++_shared.so"
182 | pickFirst "lib/x86/libc++_shared.so"
183 | pickFirst "lib/x86_64/libc++_shared.so"
184 | }
185 | }
186 |
187 | dependencies {
188 | implementation fileTree(dir: "libs", include: ["*.jar"])
189 | //noinspection GradleDynamicVersion
190 | implementation "com.facebook.react:react-native:+" // From node_modules
191 |
192 |
193 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
194 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
195 | exclude group:'com.facebook.fbjni'
196 | }
197 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
198 | exclude group:'com.facebook.flipper'
199 | }
200 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
201 | exclude group:'com.facebook.flipper'
202 | }
203 |
204 | if (enableHermes) {
205 | def hermesPath = "../../node_modules/hermes-engine/android/";
206 | debugImplementation files(hermesPath + "hermes-debug.aar")
207 | releaseImplementation files(hermesPath + "hermes-release.aar")
208 | } else {
209 | implementation jscFlavor
210 | }
211 |
212 | }
213 |
214 | // Run this once to be able to run the application with BUCK
215 | // puts all compile dependencies into folder libs for BUCK to use
216 | task copyDownloadableDepsToLibs(type: Copy) {
217 | from configurations.compile
218 | into 'libs'
219 | }
220 |
221 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
222 |
--------------------------------------------------------------------------------
/src/MentionInput.tsx:
--------------------------------------------------------------------------------
1 | import React, { useCallback, useEffect, useState } from 'react';
2 | import {
3 | NativeSyntheticEvent,
4 | StyleSheet,
5 | TextInput,
6 | TextInputKeyPressEventData,
7 | TextInputProps,
8 | TextInputSelectionChangeEventData,
9 | TextStyle,
10 | View,
11 | ViewStyle,
12 | } from 'react-native';
13 |
14 | import matchAll from 'string.prototype.matchall';
15 | import { PATTERNS } from './constants';
16 |
17 | interface Props extends TextInputProps {
18 | value: string;
19 | placeholder?: string;
20 | placeholderTextColor?: string;
21 | multiline?: boolean;
22 | onTextChange: (text: string) => void;
23 | onMarkdownChange: (markdown: string) => void;
24 | onFocusStateChange?: (status: boolean) => void;
25 | leftComponent?: React.ReactNode;
26 | rightComponent?: React.ReactNode;
27 | innerComponent?: React.ReactNode;
28 | textInputStyle: ViewStyle;
29 | textInputTextStyle: TextStyle;
30 | mentionStyle: TextStyle;
31 | suggestedUsersComponent: any;
32 | users: {
33 | id: string;
34 | name: string;
35 | avatar: string;
36 | }[];
37 | }
38 |
39 | type SuggestedUsers = {
40 | id: string;
41 | name: string;
42 | avatar: string;
43 | startPosition: number;
44 | };
45 |
46 | export const MentionsInput = React.forwardRef(
47 | (
48 | {
49 | suggestedUsersComponent,
50 | textInputStyle,
51 | onFocusStateChange = () => {},
52 | onTextChange = () => {},
53 | onMarkdownChange = () => {},
54 | placeholder = 'Write a message...',
55 | placeholderTextColor,
56 | multiline,
57 | textInputTextStyle,
58 | leftComponent = <>>,
59 | rightComponent = <>>,
60 | innerComponent = <>>,
61 | users,
62 | ...props
63 | }: Props,
64 | ref
65 | ) => {
66 | const [isOpen, SetIsOpen] = useState(false);
67 | const [suggestedUsers, SetSuggesedUsers] = useState([]);
68 | const [matches, SetMatches] = useState([]);
69 | const [mentions, SetMentions] = useState([]);
70 | const [currentCursorPosition, SetCurrentCursorPosition] = useState(0);
71 |
72 | useEffect(() => {
73 | if (props.value === '' && (mentions.length > 0 || matches.length > 0)) {
74 | SetMatches([]);
75 | SetMentions([]);
76 | SetCurrentCursorPosition(1);
77 | }
78 | }, [matches, mentions, props.value]);
79 |
80 | const transformTag = useCallback((value: string) => {
81 | return value
82 | .replace(/\s+/g, '')
83 | .toLowerCase()
84 | .normalize('NFD')
85 | .replace(/[\u0300-\u036f]/g, '');
86 | }, []);
87 |
88 | const handleSuggestionsOpen = useCallback(
89 | (values: RegExpMatchArray[], currentCursorPosition: number) => {
90 | let shouldPresentSuggestions = false;
91 | let newSuggestedUsers: Array = [];
92 |
93 | users.map(
94 | (user, index) =>
95 | (newSuggestedUsers[index] = {
96 | ...user,
97 | startPosition: 0,
98 | })
99 | );
100 |
101 | values.map((match) => {
102 | if (match === null) {
103 | return;
104 | }
105 | const matchStartPosition = match.index;
106 | if (typeof matchStartPosition === 'undefined') {
107 | return;
108 | }
109 | const matchEndPosition = matchStartPosition + match[0].length;
110 |
111 | if (
112 | currentCursorPosition > matchStartPosition &&
113 | currentCursorPosition <= matchEndPosition
114 | ) {
115 | shouldPresentSuggestions = true;
116 | newSuggestedUsers = newSuggestedUsers
117 | .filter((user) =>
118 | user.name
119 | .toLowerCase()
120 | .includes(match[0].substring(1).toLowerCase())
121 | )
122 | .map((user) => {
123 | user.startPosition = matchStartPosition;
124 | return user;
125 | });
126 | }
127 | });
128 | const isSameSuggestedUser =
129 | suggestedUsers.length === newSuggestedUsers.length &&
130 | suggestedUsers.every(
131 | (value, index) =>
132 | value.id === newSuggestedUsers[index].id &&
133 | value.startPosition == newSuggestedUsers[index].startPosition
134 | );
135 |
136 | SetIsOpen(shouldPresentSuggestions);
137 | if (!isSameSuggestedUser) {
138 | SetSuggesedUsers(newSuggestedUsers);
139 | }
140 | },
141 |
142 | [users, suggestedUsers]
143 | );
144 |
145 | const formatMarkdown = useCallback(
146 | (markdown: string) => {
147 | let parseHeadIndex = 0;
148 | let markdownArray = [];
149 |
150 | if (mentions.length === 0) {
151 | markdownArray.push({
152 | type: 'text',
153 | data: markdown,
154 | });
155 | }
156 |
157 | mentions.map((mention, index) => {
158 | let match = matches.find((m) => {
159 | return (
160 | m.index === mention.user.startPosition &&
161 | m[0] === `@${mention.user.name}`
162 | );
163 | });
164 | if (typeof match === 'undefined') {
165 | return;
166 | }
167 | markdownArray.push({
168 | type: 'text',
169 | data: markdown.substring(
170 | parseHeadIndex,
171 | mention.user.startPosition
172 | ),
173 | });
174 | markdownArray.push({
175 | type: 'mention',
176 | data: `<@${mention.user.name}::${mention.user.id}>`,
177 | });
178 | parseHeadIndex =
179 | mention.user.startPosition + mention.user.name.length + 1;
180 |
181 | if (index === mentions.length - 1) {
182 | markdownArray.push({
183 | type: 'text',
184 | data: markdown.substring(parseHeadIndex, markdown.length),
185 | });
186 | }
187 | });
188 |
189 | markdown = '';
190 |
191 | markdownArray.map((m) => {
192 | if (m.type === 'text') {
193 | markdown = markdown + encodeURIComponent(m.data);
194 | } else if (m.type === 'mention') {
195 | markdown = markdown + m.data;
196 | }
197 | });
198 | onMarkdownChange(markdown);
199 | },
200 | [onMarkdownChange, mentions, matches]
201 | );
202 |
203 | const handleDelete = useCallback(
204 | ({ nativeEvent }: NativeSyntheticEvent) => {
205 | if (nativeEvent.key === 'Backspace') {
206 | mentions.map((mention, index) => {
207 | const matchStartPosition = mention.user.startPosition;
208 | const matchEndPosition =
209 | matchStartPosition + mention.user.name.length + 1;
210 | if (
211 | currentCursorPosition > matchStartPosition &&
212 | currentCursorPosition <= matchEndPosition
213 | ) {
214 | const newMentions = mentions;
215 | newMentions.splice(index, 1);
216 | SetMentions(newMentions);
217 | }
218 | });
219 | }
220 | },
221 | [mentions, currentCursorPosition]
222 | );
223 |
224 | const onSelectionChange = useCallback(
225 | ({
226 | nativeEvent,
227 | }: NativeSyntheticEvent) => {
228 | if (nativeEvent.selection.start === nativeEvent.selection.end) {
229 | SetCurrentCursorPosition(nativeEvent.selection.start);
230 | }
231 | },
232 | []
233 | );
234 |
235 | const handleMentions = useCallback(
236 | (newText: string, currentCursorPosition: number) => {
237 | const pattern = PATTERNS.USERNAME_MENTION;
238 |
239 | let newMatches = [...matchAll(newText, pattern)];
240 | let newMentions = newText.length > 0 ? mentions : [];
241 |
242 | newMentions.map((mention) => {
243 | const matchStartPosition = mention.user.startPosition;
244 |
245 | if (decodeURI(newText).length - decodeURI(props.value).length > 0) {
246 | if (
247 | matchStartPosition + (newText.length - props.value.length) >
248 | currentCursorPosition &&
249 | currentCursorPosition !== props.value.length
250 | ) {
251 | mention.user.startPosition =
252 | mention.user.startPosition +
253 | (newText.length - props.value.length);
254 | }
255 | } else {
256 | if (matchStartPosition >= currentCursorPosition) {
257 | mention.user.startPosition =
258 | mention.user.startPosition +
259 | (newText.length - props.value.length);
260 | }
261 | }
262 | return mention;
263 | });
264 |
265 | onTextChange(newText);
266 | formatMarkdown(newText);
267 |
268 | const isSameMatch =
269 | matches.length === newMatches.length &&
270 | matches.every((value, index) => value === newMatches[index]);
271 |
272 | SetMentions(newMentions);
273 |
274 | if (!isSameMatch) {
275 | SetMatches(newMatches);
276 | }
277 | },
278 | [mentions, onTextChange, formatMarkdown, props.value, matches]
279 | );
280 |
281 | const onChangeText = useCallback(
282 | (newText: string) => {
283 | handleMentions(newText, currentCursorPosition);
284 | },
285 | [handleMentions, currentCursorPosition]
286 | );
287 |
288 | const handleAddMentions = useCallback(
289 | (user: {
290 | id: number;
291 | name: string;
292 | avatar: string;
293 | startPosition: number;
294 | }) => {
295 | const startPosition = user.startPosition;
296 | const mention = mentions.find(
297 | (m) => m.user.startPosition === startPosition
298 | );
299 | if (mention) {
300 | return;
301 | }
302 |
303 | const match = matches.find((m) => m.index === startPosition);
304 | let newMentions = mentions;
305 | const userName = transformTag(user.name);
306 | const newText =
307 | props.value.substring(0, match.index) +
308 | `@${userName} ` +
309 | props.value.substring(
310 | match.index + match[0].length,
311 | props.value.length
312 | );
313 |
314 | newMentions.push({
315 | user: {
316 | ...user,
317 | name: userName,
318 | startPosition: startPosition,
319 | test: 1000,
320 | },
321 | });
322 | newMentions.sort((a, b) =>
323 | a.user.startPosition > b.user.startPosition
324 | ? 1
325 | : b.user.startPosition > a.user.startPosition
326 | ? -1
327 | : 0
328 | );
329 |
330 | SetMentions(newMentions);
331 | SetIsOpen(false);
332 | const newCursor = match.index + user.name.length + 1;
333 | SetCurrentCursorPosition(newCursor);
334 | setTimeout(() => {
335 | handleMentions(newText, newCursor);
336 | }, 100);
337 | },
338 | [mentions, matches, transformTag, props.value, handleMentions]
339 | );
340 |
341 | const onFocus = useCallback(() => {
342 | onFocusStateChange(true);
343 | }, [onFocusStateChange]);
344 |
345 | const onBlur = useCallback(() => {
346 | onFocusStateChange(false);
347 | }, [onFocusStateChange]);
348 |
349 | useEffect(() => {
350 | formatMarkdown(props.value);
351 | }, [props.value, formatMarkdown]);
352 |
353 | useEffect(() => {
354 | let timeout = setTimeout(() => {
355 | handleSuggestionsOpen(matches, currentCursorPosition);
356 | }, 100);
357 |
358 | return () => clearTimeout(timeout);
359 | }, [handleSuggestionsOpen, matches, currentCursorPosition]);
360 |
361 | return (
362 |
363 |
364 | {isOpen && suggestedUsersComponent(suggestedUsers, handleAddMentions)}
365 |
366 | {leftComponent}
367 |
368 |
387 | {innerComponent}
388 |
389 | {rightComponent}
390 |
391 |
392 |
393 | );
394 | }
395 | );
396 |
397 | const styles = StyleSheet.create({
398 | flex: { flex: 1 },
399 | row: { flexDirection: 'row' },
400 | inputContainerRow: {
401 | flexDirection: 'row',
402 | alignItems: 'center',
403 | minHeight: 36,
404 | },
405 | innerContainer: {
406 | zIndex: 100,
407 | },
408 | });
409 |
--------------------------------------------------------------------------------
/example/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - boost-for-react-native (1.63.0)
3 | - CocoaAsyncSocket (7.6.5)
4 | - DoubleConversion (1.1.6)
5 | - FBLazyVector (0.64.2)
6 | - FBReactNativeSpec (0.64.2):
7 | - RCT-Folly (= 2020.01.13.00)
8 | - RCTRequired (= 0.64.2)
9 | - RCTTypeSafety (= 0.64.2)
10 | - React-Core (= 0.64.2)
11 | - React-jsi (= 0.64.2)
12 | - ReactCommon/turbomodule/core (= 0.64.2)
13 | - Flipper (0.75.1):
14 | - Flipper-Folly (~> 2.5)
15 | - Flipper-RSocket (~> 1.3)
16 | - Flipper-DoubleConversion (1.1.7)
17 | - Flipper-Folly (2.5.3):
18 | - boost-for-react-native
19 | - Flipper-DoubleConversion
20 | - Flipper-Glog
21 | - libevent (~> 2.1.12)
22 | - OpenSSL-Universal (= 1.1.180)
23 | - Flipper-Glog (0.3.6)
24 | - Flipper-PeerTalk (0.0.4)
25 | - Flipper-RSocket (1.3.1):
26 | - Flipper-Folly (~> 2.5)
27 | - FlipperKit (0.75.1):
28 | - FlipperKit/Core (= 0.75.1)
29 | - FlipperKit/Core (0.75.1):
30 | - Flipper (~> 0.75.1)
31 | - FlipperKit/CppBridge
32 | - FlipperKit/FBCxxFollyDynamicConvert
33 | - FlipperKit/FBDefines
34 | - FlipperKit/FKPortForwarding
35 | - FlipperKit/CppBridge (0.75.1):
36 | - Flipper (~> 0.75.1)
37 | - FlipperKit/FBCxxFollyDynamicConvert (0.75.1):
38 | - Flipper-Folly (~> 2.5)
39 | - FlipperKit/FBDefines (0.75.1)
40 | - FlipperKit/FKPortForwarding (0.75.1):
41 | - CocoaAsyncSocket (~> 7.6)
42 | - Flipper-PeerTalk (~> 0.0.4)
43 | - FlipperKit/FlipperKitHighlightOverlay (0.75.1)
44 | - FlipperKit/FlipperKitLayoutPlugin (0.75.1):
45 | - FlipperKit/Core
46 | - FlipperKit/FlipperKitHighlightOverlay
47 | - FlipperKit/FlipperKitLayoutTextSearchable
48 | - YogaKit (~> 1.18)
49 | - FlipperKit/FlipperKitLayoutTextSearchable (0.75.1)
50 | - FlipperKit/FlipperKitNetworkPlugin (0.75.1):
51 | - FlipperKit/Core
52 | - FlipperKit/FlipperKitReactPlugin (0.75.1):
53 | - FlipperKit/Core
54 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.75.1):
55 | - FlipperKit/Core
56 | - FlipperKit/SKIOSNetworkPlugin (0.75.1):
57 | - FlipperKit/Core
58 | - FlipperKit/FlipperKitNetworkPlugin
59 | - glog (0.3.5)
60 | - libevent (2.1.12)
61 | - OpenSSL-Universal (1.1.180)
62 | - RCT-Folly (2020.01.13.00):
63 | - boost-for-react-native
64 | - DoubleConversion
65 | - glog
66 | - RCT-Folly/Default (= 2020.01.13.00)
67 | - RCT-Folly/Default (2020.01.13.00):
68 | - boost-for-react-native
69 | - DoubleConversion
70 | - glog
71 | - RCTRequired (0.64.2)
72 | - RCTTypeSafety (0.64.2):
73 | - FBLazyVector (= 0.64.2)
74 | - RCT-Folly (= 2020.01.13.00)
75 | - RCTRequired (= 0.64.2)
76 | - React-Core (= 0.64.2)
77 | - React (0.64.2):
78 | - React-Core (= 0.64.2)
79 | - React-Core/DevSupport (= 0.64.2)
80 | - React-Core/RCTWebSocket (= 0.64.2)
81 | - React-RCTActionSheet (= 0.64.2)
82 | - React-RCTAnimation (= 0.64.2)
83 | - React-RCTBlob (= 0.64.2)
84 | - React-RCTImage (= 0.64.2)
85 | - React-RCTLinking (= 0.64.2)
86 | - React-RCTNetwork (= 0.64.2)
87 | - React-RCTSettings (= 0.64.2)
88 | - React-RCTText (= 0.64.2)
89 | - React-RCTVibration (= 0.64.2)
90 | - React-callinvoker (0.64.2)
91 | - React-Core (0.64.2):
92 | - glog
93 | - RCT-Folly (= 2020.01.13.00)
94 | - React-Core/Default (= 0.64.2)
95 | - React-cxxreact (= 0.64.2)
96 | - React-jsi (= 0.64.2)
97 | - React-jsiexecutor (= 0.64.2)
98 | - React-perflogger (= 0.64.2)
99 | - Yoga
100 | - React-Core/CoreModulesHeaders (0.64.2):
101 | - glog
102 | - RCT-Folly (= 2020.01.13.00)
103 | - React-Core/Default
104 | - React-cxxreact (= 0.64.2)
105 | - React-jsi (= 0.64.2)
106 | - React-jsiexecutor (= 0.64.2)
107 | - React-perflogger (= 0.64.2)
108 | - Yoga
109 | - React-Core/Default (0.64.2):
110 | - glog
111 | - RCT-Folly (= 2020.01.13.00)
112 | - React-cxxreact (= 0.64.2)
113 | - React-jsi (= 0.64.2)
114 | - React-jsiexecutor (= 0.64.2)
115 | - React-perflogger (= 0.64.2)
116 | - Yoga
117 | - React-Core/DevSupport (0.64.2):
118 | - glog
119 | - RCT-Folly (= 2020.01.13.00)
120 | - React-Core/Default (= 0.64.2)
121 | - React-Core/RCTWebSocket (= 0.64.2)
122 | - React-cxxreact (= 0.64.2)
123 | - React-jsi (= 0.64.2)
124 | - React-jsiexecutor (= 0.64.2)
125 | - React-jsinspector (= 0.64.2)
126 | - React-perflogger (= 0.64.2)
127 | - Yoga
128 | - React-Core/RCTActionSheetHeaders (0.64.2):
129 | - glog
130 | - RCT-Folly (= 2020.01.13.00)
131 | - React-Core/Default
132 | - React-cxxreact (= 0.64.2)
133 | - React-jsi (= 0.64.2)
134 | - React-jsiexecutor (= 0.64.2)
135 | - React-perflogger (= 0.64.2)
136 | - Yoga
137 | - React-Core/RCTAnimationHeaders (0.64.2):
138 | - glog
139 | - RCT-Folly (= 2020.01.13.00)
140 | - React-Core/Default
141 | - React-cxxreact (= 0.64.2)
142 | - React-jsi (= 0.64.2)
143 | - React-jsiexecutor (= 0.64.2)
144 | - React-perflogger (= 0.64.2)
145 | - Yoga
146 | - React-Core/RCTBlobHeaders (0.64.2):
147 | - glog
148 | - RCT-Folly (= 2020.01.13.00)
149 | - React-Core/Default
150 | - React-cxxreact (= 0.64.2)
151 | - React-jsi (= 0.64.2)
152 | - React-jsiexecutor (= 0.64.2)
153 | - React-perflogger (= 0.64.2)
154 | - Yoga
155 | - React-Core/RCTImageHeaders (0.64.2):
156 | - glog
157 | - RCT-Folly (= 2020.01.13.00)
158 | - React-Core/Default
159 | - React-cxxreact (= 0.64.2)
160 | - React-jsi (= 0.64.2)
161 | - React-jsiexecutor (= 0.64.2)
162 | - React-perflogger (= 0.64.2)
163 | - Yoga
164 | - React-Core/RCTLinkingHeaders (0.64.2):
165 | - glog
166 | - RCT-Folly (= 2020.01.13.00)
167 | - React-Core/Default
168 | - React-cxxreact (= 0.64.2)
169 | - React-jsi (= 0.64.2)
170 | - React-jsiexecutor (= 0.64.2)
171 | - React-perflogger (= 0.64.2)
172 | - Yoga
173 | - React-Core/RCTNetworkHeaders (0.64.2):
174 | - glog
175 | - RCT-Folly (= 2020.01.13.00)
176 | - React-Core/Default
177 | - React-cxxreact (= 0.64.2)
178 | - React-jsi (= 0.64.2)
179 | - React-jsiexecutor (= 0.64.2)
180 | - React-perflogger (= 0.64.2)
181 | - Yoga
182 | - React-Core/RCTSettingsHeaders (0.64.2):
183 | - glog
184 | - RCT-Folly (= 2020.01.13.00)
185 | - React-Core/Default
186 | - React-cxxreact (= 0.64.2)
187 | - React-jsi (= 0.64.2)
188 | - React-jsiexecutor (= 0.64.2)
189 | - React-perflogger (= 0.64.2)
190 | - Yoga
191 | - React-Core/RCTTextHeaders (0.64.2):
192 | - glog
193 | - RCT-Folly (= 2020.01.13.00)
194 | - React-Core/Default
195 | - React-cxxreact (= 0.64.2)
196 | - React-jsi (= 0.64.2)
197 | - React-jsiexecutor (= 0.64.2)
198 | - React-perflogger (= 0.64.2)
199 | - Yoga
200 | - React-Core/RCTVibrationHeaders (0.64.2):
201 | - glog
202 | - RCT-Folly (= 2020.01.13.00)
203 | - React-Core/Default
204 | - React-cxxreact (= 0.64.2)
205 | - React-jsi (= 0.64.2)
206 | - React-jsiexecutor (= 0.64.2)
207 | - React-perflogger (= 0.64.2)
208 | - Yoga
209 | - React-Core/RCTWebSocket (0.64.2):
210 | - glog
211 | - RCT-Folly (= 2020.01.13.00)
212 | - React-Core/Default (= 0.64.2)
213 | - React-cxxreact (= 0.64.2)
214 | - React-jsi (= 0.64.2)
215 | - React-jsiexecutor (= 0.64.2)
216 | - React-perflogger (= 0.64.2)
217 | - Yoga
218 | - React-CoreModules (0.64.2):
219 | - FBReactNativeSpec (= 0.64.2)
220 | - RCT-Folly (= 2020.01.13.00)
221 | - RCTTypeSafety (= 0.64.2)
222 | - React-Core/CoreModulesHeaders (= 0.64.2)
223 | - React-jsi (= 0.64.2)
224 | - React-RCTImage (= 0.64.2)
225 | - ReactCommon/turbomodule/core (= 0.64.2)
226 | - React-cxxreact (0.64.2):
227 | - boost-for-react-native (= 1.63.0)
228 | - DoubleConversion
229 | - glog
230 | - RCT-Folly (= 2020.01.13.00)
231 | - React-callinvoker (= 0.64.2)
232 | - React-jsi (= 0.64.2)
233 | - React-jsinspector (= 0.64.2)
234 | - React-perflogger (= 0.64.2)
235 | - React-runtimeexecutor (= 0.64.2)
236 | - React-jsi (0.64.2):
237 | - boost-for-react-native (= 1.63.0)
238 | - DoubleConversion
239 | - glog
240 | - RCT-Folly (= 2020.01.13.00)
241 | - React-jsi/Default (= 0.64.2)
242 | - React-jsi/Default (0.64.2):
243 | - boost-for-react-native (= 1.63.0)
244 | - DoubleConversion
245 | - glog
246 | - RCT-Folly (= 2020.01.13.00)
247 | - React-jsiexecutor (0.64.2):
248 | - DoubleConversion
249 | - glog
250 | - RCT-Folly (= 2020.01.13.00)
251 | - React-cxxreact (= 0.64.2)
252 | - React-jsi (= 0.64.2)
253 | - React-perflogger (= 0.64.2)
254 | - React-jsinspector (0.64.2)
255 | - React-perflogger (0.64.2)
256 | - React-RCTActionSheet (0.64.2):
257 | - React-Core/RCTActionSheetHeaders (= 0.64.2)
258 | - React-RCTAnimation (0.64.2):
259 | - FBReactNativeSpec (= 0.64.2)
260 | - RCT-Folly (= 2020.01.13.00)
261 | - RCTTypeSafety (= 0.64.2)
262 | - React-Core/RCTAnimationHeaders (= 0.64.2)
263 | - React-jsi (= 0.64.2)
264 | - ReactCommon/turbomodule/core (= 0.64.2)
265 | - React-RCTBlob (0.64.2):
266 | - FBReactNativeSpec (= 0.64.2)
267 | - RCT-Folly (= 2020.01.13.00)
268 | - React-Core/RCTBlobHeaders (= 0.64.2)
269 | - React-Core/RCTWebSocket (= 0.64.2)
270 | - React-jsi (= 0.64.2)
271 | - React-RCTNetwork (= 0.64.2)
272 | - ReactCommon/turbomodule/core (= 0.64.2)
273 | - React-RCTImage (0.64.2):
274 | - FBReactNativeSpec (= 0.64.2)
275 | - RCT-Folly (= 2020.01.13.00)
276 | - RCTTypeSafety (= 0.64.2)
277 | - React-Core/RCTImageHeaders (= 0.64.2)
278 | - React-jsi (= 0.64.2)
279 | - React-RCTNetwork (= 0.64.2)
280 | - ReactCommon/turbomodule/core (= 0.64.2)
281 | - React-RCTLinking (0.64.2):
282 | - FBReactNativeSpec (= 0.64.2)
283 | - React-Core/RCTLinkingHeaders (= 0.64.2)
284 | - React-jsi (= 0.64.2)
285 | - ReactCommon/turbomodule/core (= 0.64.2)
286 | - React-RCTNetwork (0.64.2):
287 | - FBReactNativeSpec (= 0.64.2)
288 | - RCT-Folly (= 2020.01.13.00)
289 | - RCTTypeSafety (= 0.64.2)
290 | - React-Core/RCTNetworkHeaders (= 0.64.2)
291 | - React-jsi (= 0.64.2)
292 | - ReactCommon/turbomodule/core (= 0.64.2)
293 | - React-RCTSettings (0.64.2):
294 | - FBReactNativeSpec (= 0.64.2)
295 | - RCT-Folly (= 2020.01.13.00)
296 | - RCTTypeSafety (= 0.64.2)
297 | - React-Core/RCTSettingsHeaders (= 0.64.2)
298 | - React-jsi (= 0.64.2)
299 | - ReactCommon/turbomodule/core (= 0.64.2)
300 | - React-RCTText (0.64.2):
301 | - React-Core/RCTTextHeaders (= 0.64.2)
302 | - React-RCTVibration (0.64.2):
303 | - FBReactNativeSpec (= 0.64.2)
304 | - RCT-Folly (= 2020.01.13.00)
305 | - React-Core/RCTVibrationHeaders (= 0.64.2)
306 | - React-jsi (= 0.64.2)
307 | - ReactCommon/turbomodule/core (= 0.64.2)
308 | - React-runtimeexecutor (0.64.2):
309 | - React-jsi (= 0.64.2)
310 | - ReactCommon/turbomodule/core (0.64.2):
311 | - DoubleConversion
312 | - glog
313 | - RCT-Folly (= 2020.01.13.00)
314 | - React-callinvoker (= 0.64.2)
315 | - React-Core (= 0.64.2)
316 | - React-cxxreact (= 0.64.2)
317 | - React-jsi (= 0.64.2)
318 | - React-perflogger (= 0.64.2)
319 | - Yoga (1.14.0)
320 | - YogaKit (1.18.1):
321 | - Yoga (~> 1.14)
322 |
323 | DEPENDENCIES:
324 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
325 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
326 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
327 | - Flipper (~> 0.75.1)
328 | - Flipper-DoubleConversion (= 1.1.7)
329 | - Flipper-Folly (~> 2.5.3)
330 | - Flipper-Glog (= 0.3.6)
331 | - Flipper-PeerTalk (~> 0.0.4)
332 | - Flipper-RSocket (~> 1.3)
333 | - FlipperKit (~> 0.75.1)
334 | - FlipperKit/Core (~> 0.75.1)
335 | - FlipperKit/CppBridge (~> 0.75.1)
336 | - FlipperKit/FBCxxFollyDynamicConvert (~> 0.75.1)
337 | - FlipperKit/FBDefines (~> 0.75.1)
338 | - FlipperKit/FKPortForwarding (~> 0.75.1)
339 | - FlipperKit/FlipperKitHighlightOverlay (~> 0.75.1)
340 | - FlipperKit/FlipperKitLayoutPlugin (~> 0.75.1)
341 | - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.75.1)
342 | - FlipperKit/FlipperKitNetworkPlugin (~> 0.75.1)
343 | - FlipperKit/FlipperKitReactPlugin (~> 0.75.1)
344 | - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.75.1)
345 | - FlipperKit/SKIOSNetworkPlugin (~> 0.75.1)
346 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
347 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
348 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
349 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
350 | - React (from `../node_modules/react-native/`)
351 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
352 | - React-Core (from `../node_modules/react-native/`)
353 | - React-Core/DevSupport (from `../node_modules/react-native/`)
354 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
355 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
356 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
357 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
358 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
359 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
360 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
361 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
362 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
363 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
364 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
365 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
366 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
367 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
368 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
369 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
370 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
371 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
372 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
373 |
374 | SPEC REPOS:
375 | trunk:
376 | - boost-for-react-native
377 | - CocoaAsyncSocket
378 | - Flipper
379 | - Flipper-DoubleConversion
380 | - Flipper-Folly
381 | - Flipper-Glog
382 | - Flipper-PeerTalk
383 | - Flipper-RSocket
384 | - FlipperKit
385 | - libevent
386 | - OpenSSL-Universal
387 | - YogaKit
388 |
389 | EXTERNAL SOURCES:
390 | DoubleConversion:
391 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
392 | FBLazyVector:
393 | :path: "../node_modules/react-native/Libraries/FBLazyVector"
394 | FBReactNativeSpec:
395 | :path: "../node_modules/react-native/React/FBReactNativeSpec"
396 | glog:
397 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
398 | RCT-Folly:
399 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
400 | RCTRequired:
401 | :path: "../node_modules/react-native/Libraries/RCTRequired"
402 | RCTTypeSafety:
403 | :path: "../node_modules/react-native/Libraries/TypeSafety"
404 | React:
405 | :path: "../node_modules/react-native/"
406 | React-callinvoker:
407 | :path: "../node_modules/react-native/ReactCommon/callinvoker"
408 | React-Core:
409 | :path: "../node_modules/react-native/"
410 | React-CoreModules:
411 | :path: "../node_modules/react-native/React/CoreModules"
412 | React-cxxreact:
413 | :path: "../node_modules/react-native/ReactCommon/cxxreact"
414 | React-jsi:
415 | :path: "../node_modules/react-native/ReactCommon/jsi"
416 | React-jsiexecutor:
417 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
418 | React-jsinspector:
419 | :path: "../node_modules/react-native/ReactCommon/jsinspector"
420 | React-perflogger:
421 | :path: "../node_modules/react-native/ReactCommon/reactperflogger"
422 | React-RCTActionSheet:
423 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
424 | React-RCTAnimation:
425 | :path: "../node_modules/react-native/Libraries/NativeAnimation"
426 | React-RCTBlob:
427 | :path: "../node_modules/react-native/Libraries/Blob"
428 | React-RCTImage:
429 | :path: "../node_modules/react-native/Libraries/Image"
430 | React-RCTLinking:
431 | :path: "../node_modules/react-native/Libraries/LinkingIOS"
432 | React-RCTNetwork:
433 | :path: "../node_modules/react-native/Libraries/Network"
434 | React-RCTSettings:
435 | :path: "../node_modules/react-native/Libraries/Settings"
436 | React-RCTText:
437 | :path: "../node_modules/react-native/Libraries/Text"
438 | React-RCTVibration:
439 | :path: "../node_modules/react-native/Libraries/Vibration"
440 | React-runtimeexecutor:
441 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
442 | ReactCommon:
443 | :path: "../node_modules/react-native/ReactCommon"
444 | Yoga:
445 | :path: "../node_modules/react-native/ReactCommon/yoga"
446 |
447 | SPEC CHECKSUMS:
448 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
449 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
450 | DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
451 | FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b
452 | FBReactNativeSpec: 5d0acffb16609f6297335bd1fb007814a393395f
453 | Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
454 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
455 | Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c
456 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6
457 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
458 | Flipper-RSocket: 127954abe8b162fcaf68d2134d34dc2bd7076154
459 | FlipperKit: 8a20b5c5fcf9436cac58551dc049867247f64b00
460 | glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62
461 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
462 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
463 | RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c
464 | RCTRequired: 6d3e854f0e7260a648badd0d44fc364bc9da9728
465 | RCTTypeSafety: c1f31d19349c6b53085766359caac425926fafaa
466 | React: bda6b6d7ae912de97d7a61aa5c160db24aa2ad69
467 | React-callinvoker: 9840ea7e8e88ed73d438edb725574820b29b5baa
468 | React-Core: b5e385da7ce5f16a220fc60fd0749eae2c6120f0
469 | React-CoreModules: 17071a4e2c5239b01585f4aa8070141168ab298f
470 | React-cxxreact: 9be7b6340ed9f7c53e53deca7779f07cd66525ba
471 | React-jsi: 67747b9722f6dab2ffe15b011bcf6b3f2c3f1427
472 | React-jsiexecutor: 80c46bd381fd06e418e0d4f53672dc1d1945c4c3
473 | React-jsinspector: cc614ec18a9ca96fd275100c16d74d62ee11f0ae
474 | React-perflogger: 25373e382fed75ce768a443822f07098a15ab737
475 | React-RCTActionSheet: af7796ba49ffe4ca92e7277a5d992d37203f7da5
476 | React-RCTAnimation: 6a2e76ab50c6f25b428d81b76a5a45351c4d77aa
477 | React-RCTBlob: 02a2887023e0eed99391b6445b2e23a2a6f9226d
478 | React-RCTImage: ce5bf8e7438f2286d9b646a05d6ab11f38b0323d
479 | React-RCTLinking: ccd20742de14e020cb5f99d5c7e0bf0383aefbd9
480 | React-RCTNetwork: dfb9d089ab0753e5e5f55fc4b1210858f7245647
481 | React-RCTSettings: b14aef2d83699e48b410fb7c3ba5b66cd3291ae2
482 | React-RCTText: 41a2e952dd9adc5caf6fb68ed46b275194d5da5f
483 | React-RCTVibration: 24600e3b1aaa77126989bc58b6747509a1ba14f3
484 | React-runtimeexecutor: a9904c6d0218fb9f8b19d6dd88607225927668f9
485 | ReactCommon: 149906e01aa51142707a10665185db879898e966
486 | Yoga: 575c581c63e0d35c9a83f4b46d01d63abc1100ac
487 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
488 |
489 | PODFILE CHECKSUM: e71d2c79ea691cd2b5286ebf30ac0493e6f3c295
490 |
491 | COCOAPODS: 1.10.1
492 |
--------------------------------------------------------------------------------
/example/ios/ReactNativeMentionsInputExample.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 0D1336C0461A88D01186E375 /* libPods-ReactNativeMentionsInputExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BCEA90A70F4BEAD7E9FA28B2 /* libPods-ReactNativeMentionsInputExample.a */; };
11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
12 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
13 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
14 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
15 | 20F357B024636CDF00C146DC /* File.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20F357AF24636CDF00C146DC /* File.swift */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXFileReference section */
19 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
20 | 13B07F961A680F5B00A75B9A /* ReactNativeMentionsInputExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeMentionsInputExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeMentionsInputExample/AppDelegate.h; sourceTree = ""; };
22 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeMentionsInputExample/AppDelegate.m; sourceTree = ""; };
23 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
24 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeMentionsInputExample/Images.xcassets; sourceTree = ""; };
25 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeMentionsInputExample/Info.plist; sourceTree = ""; };
26 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeMentionsInputExample/main.m; sourceTree = ""; };
27 | 20F357AD24636CDE00C146DC /* ReactNativeMentionsInputExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReactNativeMentionsInputExample-Bridging-Header.h"; sourceTree = ""; };
28 | 20F357AE24636CDF00C146DC /* ReactNativeMentionsInputExample-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ReactNativeMentionsInputExample-Bridging-Header.h"; sourceTree = ""; };
29 | 20F357AF24636CDF00C146DC /* File.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = File.swift; sourceTree = ""; };
30 | 4D7192F03A36A017E887435B /* Pods-ReactNativeMentionsInputExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeMentionsInputExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeMentionsInputExample/Pods-ReactNativeMentionsInputExample.release.xcconfig"; sourceTree = ""; };
31 | 871719007ECC5EAD276C345C /* Pods-ReactNativeMentionsInputExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeMentionsInputExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeMentionsInputExample/Pods-ReactNativeMentionsInputExample.debug.xcconfig"; sourceTree = ""; };
32 | BCEA90A70F4BEAD7E9FA28B2 /* libPods-ReactNativeMentionsInputExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeMentionsInputExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
33 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
34 | /* End PBXFileReference section */
35 |
36 | /* Begin PBXFrameworksBuildPhase section */
37 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
38 | isa = PBXFrameworksBuildPhase;
39 | buildActionMask = 2147483647;
40 | files = (
41 | 0D1336C0461A88D01186E375 /* libPods-ReactNativeMentionsInputExample.a in Frameworks */,
42 | );
43 | runOnlyForDeploymentPostprocessing = 0;
44 | };
45 | /* End PBXFrameworksBuildPhase section */
46 |
47 | /* Begin PBXGroup section */
48 | 13B07FAE1A68108700A75B9A /* ReactNativeMentionsInputExample */ = {
49 | isa = PBXGroup;
50 | children = (
51 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
52 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
53 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
54 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
55 | 13B07FB61A68108700A75B9A /* Info.plist */,
56 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
57 | 13B07FB71A68108700A75B9A /* main.m */,
58 | );
59 | name = ReactNativeMentionsInputExample;
60 | sourceTree = "";
61 | };
62 | 1CFFDEF7170271C97B8B7E5A /* Pods */ = {
63 | isa = PBXGroup;
64 | children = (
65 | 871719007ECC5EAD276C345C /* Pods-ReactNativeMentionsInputExample.debug.xcconfig */,
66 | 4D7192F03A36A017E887435B /* Pods-ReactNativeMentionsInputExample.release.xcconfig */,
67 | );
68 | path = Pods;
69 | sourceTree = "";
70 | };
71 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
72 | isa = PBXGroup;
73 | children = (
74 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
75 | BCEA90A70F4BEAD7E9FA28B2 /* libPods-ReactNativeMentionsInputExample.a */,
76 | );
77 | name = Frameworks;
78 | sourceTree = "";
79 | };
80 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
81 | isa = PBXGroup;
82 | children = (
83 | );
84 | name = Libraries;
85 | sourceTree = "";
86 | };
87 | 83CBB9F61A601CBA00E9B192 = {
88 | isa = PBXGroup;
89 | children = (
90 | 20F357AF24636CDF00C146DC /* File.swift */,
91 | 20F357AE24636CDF00C146DC /* ReactNativeMentionsInputExample-Bridging-Header.h */,
92 | 13B07FAE1A68108700A75B9A /* ReactNativeMentionsInputExample */,
93 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
94 | 83CBBA001A601CBA00E9B192 /* Products */,
95 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
96 | 1CFFDEF7170271C97B8B7E5A /* Pods */,
97 | 20F357AD24636CDE00C146DC /* ReactNativeMentionsInputExample-Bridging-Header.h */,
98 | );
99 | indentWidth = 2;
100 | sourceTree = "";
101 | tabWidth = 2;
102 | usesTabs = 0;
103 | };
104 | 83CBBA001A601CBA00E9B192 /* Products */ = {
105 | isa = PBXGroup;
106 | children = (
107 | 13B07F961A680F5B00A75B9A /* ReactNativeMentionsInputExample.app */,
108 | );
109 | name = Products;
110 | sourceTree = "";
111 | };
112 | /* End PBXGroup section */
113 |
114 | /* Begin PBXNativeTarget section */
115 | 13B07F861A680F5B00A75B9A /* ReactNativeMentionsInputExample */ = {
116 | isa = PBXNativeTarget;
117 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeMentionsInputExample" */;
118 | buildPhases = (
119 | CCCC07BCAFDEF1FCADC0D0C9 /* [CP] Check Pods Manifest.lock */,
120 | FD10A7F022414F080027D42C /* Start Packager */,
121 | 13B07F871A680F5B00A75B9A /* Sources */,
122 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
123 | 13B07F8E1A680F5B00A75B9A /* Resources */,
124 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
125 | C3AA7C3ECF4B5BABD755539A /* [CP] Copy Pods Resources */,
126 | 72414BE867A7190DF9E8A30B /* [CP] Embed Pods Frameworks */,
127 | );
128 | buildRules = (
129 | );
130 | dependencies = (
131 | );
132 | name = ReactNativeMentionsInputExample;
133 | productName = ReactNativeMentionsInputExample;
134 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativeMentionsInputExample.app */;
135 | productType = "com.apple.product-type.application";
136 | };
137 | /* End PBXNativeTarget section */
138 |
139 | /* Begin PBXProject section */
140 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
141 | isa = PBXProject;
142 | attributes = {
143 | LastUpgradeCheck = 0940;
144 | ORGANIZATIONNAME = Facebook;
145 | TargetAttributes = {
146 | 13B07F861A680F5B00A75B9A = {
147 | DevelopmentTeam = 73JT997M96;
148 | LastSwiftMigration = 1110;
149 | };
150 | };
151 | };
152 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeMentionsInputExample" */;
153 | compatibilityVersion = "Xcode 3.2";
154 | developmentRegion = English;
155 | hasScannedForEncodings = 0;
156 | knownRegions = (
157 | English,
158 | en,
159 | Base,
160 | );
161 | mainGroup = 83CBB9F61A601CBA00E9B192;
162 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
163 | projectDirPath = "";
164 | projectRoot = "";
165 | targets = (
166 | 13B07F861A680F5B00A75B9A /* ReactNativeMentionsInputExample */,
167 | );
168 | };
169 | /* End PBXProject section */
170 |
171 | /* Begin PBXResourcesBuildPhase section */
172 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
173 | isa = PBXResourcesBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
177 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
178 | );
179 | runOnlyForDeploymentPostprocessing = 0;
180 | };
181 | /* End PBXResourcesBuildPhase section */
182 |
183 | /* Begin PBXShellScriptBuildPhase section */
184 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
185 | isa = PBXShellScriptBuildPhase;
186 | buildActionMask = 2147483647;
187 | files = (
188 | );
189 | inputPaths = (
190 | );
191 | name = "Bundle React Native code and images";
192 | outputPaths = (
193 | );
194 | runOnlyForDeploymentPostprocessing = 0;
195 | shellPath = /bin/sh;
196 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
197 | };
198 | 72414BE867A7190DF9E8A30B /* [CP] Embed Pods Frameworks */ = {
199 | isa = PBXShellScriptBuildPhase;
200 | buildActionMask = 2147483647;
201 | files = (
202 | );
203 | inputPaths = (
204 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeMentionsInputExample/Pods-ReactNativeMentionsInputExample-frameworks.sh",
205 | "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL",
206 | );
207 | name = "[CP] Embed Pods Frameworks";
208 | outputPaths = (
209 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework",
210 | );
211 | runOnlyForDeploymentPostprocessing = 0;
212 | shellPath = /bin/sh;
213 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeMentionsInputExample/Pods-ReactNativeMentionsInputExample-frameworks.sh\"\n";
214 | showEnvVarsInLog = 0;
215 | };
216 | C3AA7C3ECF4B5BABD755539A /* [CP] Copy Pods Resources */ = {
217 | isa = PBXShellScriptBuildPhase;
218 | buildActionMask = 2147483647;
219 | files = (
220 | );
221 | inputPaths = (
222 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeMentionsInputExample/Pods-ReactNativeMentionsInputExample-resources.sh",
223 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
224 | );
225 | name = "[CP] Copy Pods Resources";
226 | outputPaths = (
227 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
228 | );
229 | runOnlyForDeploymentPostprocessing = 0;
230 | shellPath = /bin/sh;
231 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeMentionsInputExample/Pods-ReactNativeMentionsInputExample-resources.sh\"\n";
232 | showEnvVarsInLog = 0;
233 | };
234 | CCCC07BCAFDEF1FCADC0D0C9 /* [CP] Check Pods Manifest.lock */ = {
235 | isa = PBXShellScriptBuildPhase;
236 | buildActionMask = 2147483647;
237 | files = (
238 | );
239 | inputFileListPaths = (
240 | );
241 | inputPaths = (
242 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
243 | "${PODS_ROOT}/Manifest.lock",
244 | );
245 | name = "[CP] Check Pods Manifest.lock";
246 | outputFileListPaths = (
247 | );
248 | outputPaths = (
249 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeMentionsInputExample-checkManifestLockResult.txt",
250 | );
251 | runOnlyForDeploymentPostprocessing = 0;
252 | shellPath = /bin/sh;
253 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
254 | showEnvVarsInLog = 0;
255 | };
256 | FD10A7F022414F080027D42C /* Start Packager */ = {
257 | isa = PBXShellScriptBuildPhase;
258 | buildActionMask = 2147483647;
259 | files = (
260 | );
261 | inputFileListPaths = (
262 | );
263 | inputPaths = (
264 | );
265 | name = "Start Packager";
266 | outputFileListPaths = (
267 | );
268 | outputPaths = (
269 | );
270 | runOnlyForDeploymentPostprocessing = 0;
271 | shellPath = /bin/sh;
272 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
273 | showEnvVarsInLog = 0;
274 | };
275 | /* End PBXShellScriptBuildPhase section */
276 |
277 | /* Begin PBXSourcesBuildPhase section */
278 | 13B07F871A680F5B00A75B9A /* Sources */ = {
279 | isa = PBXSourcesBuildPhase;
280 | buildActionMask = 2147483647;
281 | files = (
282 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
283 | 20F357B024636CDF00C146DC /* File.swift in Sources */,
284 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
285 | );
286 | runOnlyForDeploymentPostprocessing = 0;
287 | };
288 | /* End PBXSourcesBuildPhase section */
289 |
290 | /* Begin PBXVariantGroup section */
291 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
292 | isa = PBXVariantGroup;
293 | children = (
294 | 13B07FB21A68108700A75B9A /* Base */,
295 | );
296 | name = LaunchScreen.xib;
297 | path = ReactNativeMentionsInputExample;
298 | sourceTree = "";
299 | };
300 | /* End PBXVariantGroup section */
301 |
302 | /* Begin XCBuildConfiguration section */
303 | 13B07F941A680F5B00A75B9A /* Debug */ = {
304 | isa = XCBuildConfiguration;
305 | baseConfigurationReference = 871719007ECC5EAD276C345C /* Pods-ReactNativeMentionsInputExample.debug.xcconfig */;
306 | buildSettings = {
307 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
308 | CLANG_ENABLE_MODULES = YES;
309 | CURRENT_PROJECT_VERSION = 1;
310 | DEAD_CODE_STRIPPING = NO;
311 | DEVELOPMENT_TEAM = 73JT997M96;
312 | ENABLE_BITCODE = NO;
313 | INFOPLIST_FILE = ReactNativeMentionsInputExample/Info.plist;
314 | IPHONEOS_DEPLOYMENT_TARGET = 12.1;
315 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
316 | OTHER_CFLAGS = (
317 | "$(inherited)",
318 | "-DFB_SONARKIT_ENABLED=1",
319 | );
320 | OTHER_LDFLAGS = (
321 | "$(inherited)",
322 | "-ObjC",
323 | "-lc++",
324 | );
325 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.ReactNativeMentionsInputExample.$(PRODUCT_NAME:rfc1034identifier)";
326 | PRODUCT_NAME = ReactNativeMentionsInputExample;
327 | SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeMentionsInputExample-Bridging-Header.h";
328 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
329 | SWIFT_VERSION = 5.0;
330 | VERSIONING_SYSTEM = "apple-generic";
331 | };
332 | name = Debug;
333 | };
334 | 13B07F951A680F5B00A75B9A /* Release */ = {
335 | isa = XCBuildConfiguration;
336 | baseConfigurationReference = 4D7192F03A36A017E887435B /* Pods-ReactNativeMentionsInputExample.release.xcconfig */;
337 | buildSettings = {
338 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
339 | CLANG_ENABLE_MODULES = YES;
340 | CURRENT_PROJECT_VERSION = 1;
341 | DEVELOPMENT_TEAM = 73JT997M96;
342 | ENABLE_BITCODE = NO;
343 | INFOPLIST_FILE = ReactNativeMentionsInputExample/Info.plist;
344 | IPHONEOS_DEPLOYMENT_TARGET = 12.1;
345 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
346 | OTHER_CFLAGS = (
347 | "$(inherited)",
348 | "-DFB_SONARKIT_ENABLED=1",
349 | );
350 | OTHER_LDFLAGS = (
351 | "$(inherited)",
352 | "-ObjC",
353 | "-lc++",
354 | );
355 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.ReactNativeMentionsInputExample.$(PRODUCT_NAME:rfc1034identifier)";
356 | PRODUCT_NAME = ReactNativeMentionsInputExample;
357 | SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeMentionsInputExample-Bridging-Header.h";
358 | SWIFT_VERSION = 5.0;
359 | VERSIONING_SYSTEM = "apple-generic";
360 | };
361 | name = Release;
362 | };
363 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
364 | isa = XCBuildConfiguration;
365 | buildSettings = {
366 | ALWAYS_SEARCH_USER_PATHS = NO;
367 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
368 | CLANG_CXX_LIBRARY = "libc++";
369 | CLANG_ENABLE_MODULES = YES;
370 | CLANG_ENABLE_OBJC_ARC = YES;
371 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
372 | CLANG_WARN_BOOL_CONVERSION = YES;
373 | CLANG_WARN_COMMA = YES;
374 | CLANG_WARN_CONSTANT_CONVERSION = YES;
375 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
376 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
377 | CLANG_WARN_EMPTY_BODY = YES;
378 | CLANG_WARN_ENUM_CONVERSION = YES;
379 | CLANG_WARN_INFINITE_RECURSION = YES;
380 | CLANG_WARN_INT_CONVERSION = YES;
381 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
382 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
383 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
384 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
385 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
386 | CLANG_WARN_STRICT_PROTOTYPES = YES;
387 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
388 | CLANG_WARN_UNREACHABLE_CODE = YES;
389 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
390 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
391 | COPY_PHASE_STRIP = NO;
392 | ENABLE_STRICT_OBJC_MSGSEND = YES;
393 | ENABLE_TESTABILITY = YES;
394 | GCC_C_LANGUAGE_STANDARD = gnu99;
395 | GCC_DYNAMIC_NO_PIC = NO;
396 | GCC_NO_COMMON_BLOCKS = YES;
397 | GCC_OPTIMIZATION_LEVEL = 0;
398 | GCC_PREPROCESSOR_DEFINITIONS = (
399 | "DEBUG=1",
400 | "$(inherited)",
401 | );
402 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
403 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
404 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
405 | GCC_WARN_UNDECLARED_SELECTOR = YES;
406 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
407 | GCC_WARN_UNUSED_FUNCTION = YES;
408 | GCC_WARN_UNUSED_VARIABLE = YES;
409 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
410 | MTL_ENABLE_DEBUG_INFO = YES;
411 | ONLY_ACTIVE_ARCH = YES;
412 | SDKROOT = iphoneos;
413 | };
414 | name = Debug;
415 | };
416 | 83CBBA211A601CBA00E9B192 /* Release */ = {
417 | isa = XCBuildConfiguration;
418 | buildSettings = {
419 | ALWAYS_SEARCH_USER_PATHS = NO;
420 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
421 | CLANG_CXX_LIBRARY = "libc++";
422 | CLANG_ENABLE_MODULES = YES;
423 | CLANG_ENABLE_OBJC_ARC = YES;
424 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
425 | CLANG_WARN_BOOL_CONVERSION = YES;
426 | CLANG_WARN_COMMA = YES;
427 | CLANG_WARN_CONSTANT_CONVERSION = YES;
428 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
429 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
430 | CLANG_WARN_EMPTY_BODY = YES;
431 | CLANG_WARN_ENUM_CONVERSION = YES;
432 | CLANG_WARN_INFINITE_RECURSION = YES;
433 | CLANG_WARN_INT_CONVERSION = YES;
434 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
435 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
436 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
437 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
438 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
439 | CLANG_WARN_STRICT_PROTOTYPES = YES;
440 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
441 | CLANG_WARN_UNREACHABLE_CODE = YES;
442 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
443 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
444 | COPY_PHASE_STRIP = YES;
445 | ENABLE_NS_ASSERTIONS = NO;
446 | ENABLE_STRICT_OBJC_MSGSEND = YES;
447 | GCC_C_LANGUAGE_STANDARD = gnu99;
448 | GCC_NO_COMMON_BLOCKS = YES;
449 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
450 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
451 | GCC_WARN_UNDECLARED_SELECTOR = YES;
452 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
453 | GCC_WARN_UNUSED_FUNCTION = YES;
454 | GCC_WARN_UNUSED_VARIABLE = YES;
455 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
456 | MTL_ENABLE_DEBUG_INFO = NO;
457 | SDKROOT = iphoneos;
458 | VALIDATE_PRODUCT = YES;
459 | };
460 | name = Release;
461 | };
462 | /* End XCBuildConfiguration section */
463 |
464 | /* Begin XCConfigurationList section */
465 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeMentionsInputExample" */ = {
466 | isa = XCConfigurationList;
467 | buildConfigurations = (
468 | 13B07F941A680F5B00A75B9A /* Debug */,
469 | 13B07F951A680F5B00A75B9A /* Release */,
470 | );
471 | defaultConfigurationIsVisible = 0;
472 | defaultConfigurationName = Release;
473 | };
474 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeMentionsInputExample" */ = {
475 | isa = XCConfigurationList;
476 | buildConfigurations = (
477 | 83CBBA201A601CBA00E9B192 /* Debug */,
478 | 83CBBA211A601CBA00E9B192 /* Release */,
479 | );
480 | defaultConfigurationIsVisible = 0;
481 | defaultConfigurationName = Release;
482 | };
483 | /* End XCConfigurationList section */
484 | };
485 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
486 | }
487 |
--------------------------------------------------------------------------------