Skip to content

Commit

Permalink
handle donation outside ios since app reject app because of it
Browse files Browse the repository at this point in the history
  • Loading branch information
geastwood committed Feb 7, 2020
1 parent 2980180 commit e4b6d3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand Down
12 changes: 2 additions & 10 deletions src/Components/Donation.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { Text, View, Dimensions } from 'react-native';
import { Text, View, Dimensions, Linking } from 'react-native';
import { Card, Button } from 'react-native-elements';

import WebViewModal from './Webview';
Expand Down Expand Up @@ -33,8 +33,6 @@ function Item({ left, right }: { left: string; right: string }) {
}

function Donation({ item }: PropTypes) {
const [visible, setVisible] = useState(false);

return (
<Card title={`${item.name}${item.status})`}>
<ContactList data={item.contacts} />
Expand Down Expand Up @@ -73,13 +71,7 @@ function Donation({ item }: PropTypes) {
<Button
type="outline"
title="查看详情"
onPress={() => setVisible(true)}
/>
<WebViewModal
uri={item.url}
title={`${item.name}`}
visible={visible}
onClose={() => setVisible(false)}
onPress={() => Linking.openURL(item.url)}
/>
</View>
</Card>
Expand Down

0 comments on commit e4b6d3a

Please sign in to comment.