Browse Source

Use react native Linking instead of expo

Arnaud Vergnet 1 year ago
parent
commit
7181579481

+ 1
- 1
src/components/Overrides/CustomHTML.js View File

@@ -1,7 +1,7 @@
1 1
 import * as React from 'react';
2 2
 import {Text, withTheme} from 'react-native-paper';
3 3
 import HTML from "react-native-render-html";
4
-import {Linking} from "expo";
4
+import {Linking} from "react-native";
5 5
 
6 6
 type Props = {
7 7
     theme: Object,

+ 1
- 2
src/components/Screens/WebViewScreen.js View File

@@ -7,9 +7,8 @@ import ErrorView from "./ErrorView";
7 7
 import {ERROR_TYPE} from "../../utils/WebData";
8 8
 import MaterialHeaderButtons, {Item} from '../Overrides/CustomHeaderButton';
9 9
 import {HiddenItem} from "react-navigation-header-buttons";
10
-import {Linking} from "expo";
11 10
 import i18n from 'i18n-js';
12
-import {Animated, BackHandler} from "react-native";
11
+import {Animated, BackHandler, Linking} from "react-native";
13 12
 import {withCollapsible} from "../../utils/withCollapsible";
14 13
 
15 14
 type Props = {

+ 1
- 2
src/screens/Amicale/AmicaleContactScreen.js View File

@@ -1,10 +1,9 @@
1 1
 // @flow
2 2
 
3 3
 import * as React from 'react';
4
-import {Animated, FlatList, Image, View} from 'react-native';
4
+import {Animated, FlatList, Image, Linking, View} from 'react-native';
5 5
 import {Card, List, Text, withTheme} from 'react-native-paper';
6 6
 import i18n from 'i18n-js';
7
-import {Linking} from "expo";
8 7
 import {Collapsible} from "react-navigation-collapsible";
9 8
 import CustomTabBar from "../../components/Tabbar/CustomTabBar";
10 9
 import {withCollapsible} from "../../utils/withCollapsible";

+ 1
- 2
src/screens/Amicale/Clubs/ClubDisplayScreen.js View File

@@ -1,7 +1,7 @@
1 1
 // @flow
2 2
 
3 3
 import * as React from 'react';
4
-import {ScrollView, View} from 'react-native';
4
+import {Linking, ScrollView, View} from 'react-native';
5 5
 import {Avatar, Button, Card, Chip, Paragraph, withTheme} from 'react-native-paper';
6 6
 import ImageModal from 'react-native-image-modal';
7 7
 import i18n from "i18n-js";
@@ -11,7 +11,6 @@ import CustomTabBar from "../../../components/Tabbar/CustomTabBar";
11 11
 import type {category, club} from "./ClubListScreen";
12 12
 import type {CustomTheme} from "../../../managers/ThemeManager";
13 13
 import {StackNavigationProp} from "@react-navigation/stack";
14
-import {Linking} from "expo";
15 14
 import {ERROR_TYPE} from "../../../utils/WebData";
16 15
 
17 16
 type Props = {

+ 1
- 2
src/screens/Amicale/LoginScreen.js View File

@@ -1,7 +1,7 @@
1 1
 // @flow
2 2
 
3 3
 import * as React from 'react';
4
-import {Animated, KeyboardAvoidingView, StyleSheet, View} from "react-native";
4
+import {Animated, KeyboardAvoidingView, Linking, StyleSheet, View} from "react-native";
5 5
 import {Avatar, Button, Card, HelperText, Paragraph, TextInput, withTheme} from 'react-native-paper';
6 6
 import ConnectionManager from "../../managers/ConnectionManager";
7 7
 import i18n from 'i18n-js';
@@ -10,7 +10,6 @@ import {withCollapsible} from "../../utils/withCollapsible";
10 10
 import {Collapsible} from "react-navigation-collapsible";
11 11
 import CustomTabBar from "../../components/Tabbar/CustomTabBar";
12 12
 import type {CustomTheme} from "../../managers/ThemeManager";
13
-import {Linking} from "expo";
14 13
 
15 14
 type Props = {
16 15
     navigation: Object,

+ 1
- 2
src/screens/Home/FeedItemScreen.js View File

@@ -1,12 +1,11 @@
1 1
 // @flow
2 2
 
3 3
 import * as React from 'react';
4
-import {ScrollView, View} from 'react-native';
4
+import {Linking, ScrollView, View} from 'react-native';
5 5
 import {Avatar, Card, Text, withTheme} from 'react-native-paper';
6 6
 import ImageModal from 'react-native-image-modal';
7 7
 import Autolink from "react-native-autolink";
8 8
 import MaterialHeaderButtons, {Item} from "../../components/Overrides/CustomHeaderButton";
9
-import {Linking} from "expo";
10 9
 import CustomTabBar from "../../components/Tabbar/CustomTabBar";
11 10
 
12 11
 type Props = {

+ 1
- 2
src/screens/Home/ScannerScreen.js View File

@@ -1,12 +1,11 @@
1 1
 // @flow
2 2
 
3 3
 import * as React from 'react';
4
-import {StyleSheet, View} from "react-native";
4
+import {Linking, StyleSheet, View} from "react-native";
5 5
 import {Button, Text, withTheme} from 'react-native-paper';
6 6
 import {BarCodeScanner} from "expo-barcode-scanner";
7 7
 import {Camera} from 'expo-camera';
8 8
 import URLHandler from "../../utils/URLHandler";
9
-import {Linking} from "expo";
10 9
 import AlertDialog from "../../components/Dialogs/AlertDialog";
11 10
 import i18n from 'i18n-js';
12 11
 import CustomTabBar from "../../components/Tabbar/CustomTabBar";

+ 1
- 2
src/screens/Other/FeedbackScreen.js View File

@@ -3,8 +3,7 @@
3 3
 import * as React from 'react';
4 4
 import {Avatar, Button, Card, Paragraph, withTheme} from "react-native-paper";
5 5
 import i18n from "i18n-js";
6
-import {ScrollView} from "react-native";
7
-import {Linking} from "expo";
6
+import {Linking, ScrollView} from "react-native";
8 7
 import type {CustomTheme} from "../../managers/ThemeManager";
9 8
 
10 9
 type Props = {

Loading…
Cancel
Save