Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix opening search causes crash in share ext

ammarahm-eda17d2d69ef1d
diff --git a/apps/mobile/share/search.js b/apps/mobile/share/search.js
index b3a6a36f5..e63f36d38 100644
--- a/apps/mobile/share/search.js
+++ b/apps/mobile/share/search.js
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import React, { useEffect, useRef, useState, FlatList } from "react";
+import React, { useEffect, useRef, useState } from "react";
import {
Platform,
StatusBar,
@@ -25,7 +25,8 @@ import {
TextInput,
TouchableOpacity,
View,
- useWindowDimensions
+ useWindowDimensions,
+ FlatList
} from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import Icon from "react-native-vector-icons/MaterialCommunityIcons";