Skip to content

Commit

Permalink
Fix share activity (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
putuadityabayu authored Aug 25, 2021
1 parent fdb4bd8 commit 82354fa
Show file tree
Hide file tree
Showing 12 changed files with 1,540 additions and 1,450 deletions.
22 changes: 20 additions & 2 deletions activity/share/ShareActivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import * as Secure from 'expo-secure-store'
import ShareModule from '@pn/module/Share'
import Layout from '@pn/components/global/Layout'
import ListItem from '@pn/components/global/ListItem'
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator,TransitionPresets } from '@react-navigation/stack';

import TopNavigationAction from '@pn/components/navigation/TopAction'
import TopNav from '@pn/components/navigation/TopNav'
Expand Down Expand Up @@ -155,7 +157,7 @@ const ShareImage=React.memo(({data,user,token,menu,onCloseMenu})=>{
)
})

export default function Share(){
function Share(){
const [data,setData]=React.useState(null);
const [user,setUser]=React.useState(null);
const [token,setToken] = React.useState(null);
Expand Down Expand Up @@ -198,7 +200,7 @@ export default function Share(){

return (
<BaseActivity>
<Layout custom={Header} whiteBg >
<Layout custom={Header} whiteBg>
{data===null ? (
<Lay style={{flex:1,justifyContent:'center',alignItems:'center'}}>
<Spinner size="large" />
Expand All @@ -217,4 +219,20 @@ export default function Share(){
</Layout>
</BaseActivity>
)
}

const MainStack = createStackNavigator();

export default function(){
return (
<NavigationContainer>
<MainStack.Navigator initialRouteName="Share" screenOptions={{
headerShown:false,
gestureEnabled:true,
...TransitionPresets.SlideFromRightIOS
}}>
<MainStack.Screen name="Share" component={Share} />
</MainStack.Navigator>
</NavigationContainer>
)
}
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Portalnesia",
"slug": "portalnesia",
"scheme": "pn",
"version": "2.10.0",
"version": "2.10.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"backgroundColor": "#ffffff",
Expand Down
2 changes: 1 addition & 1 deletion dist/android-index.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,25 @@
"follower":"follower",
"following":"following",
"unfollow":"unfollow",
"random_number":{
"animation":"Animation",
"animation_help":"Enable animation when randomize numbers",
"min":"Minimum Number",
"max":"Maximum Number",
"specify":{
"max":"Please specify a maximum number",
"min":"Please specify a minimum number"
},
"less":{
"max":"The maximum number must be less than %{number}",
"min":"The minimum number must be less than %{number}"
},
"than":{
"max":"The maximum number must be greater than the minimum number",
"min":"The minimum number must be less than the maximum number"
},
"same":"The minimum number and the maximum number can not be the same number"
},
"settings":{
"account":{
"private":"Set profile to private",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
"color-indicator-bar":"$color-primary-500",
"skeleton-background-color":"#E1E9EE",
"skeleton-hightlight-color":"#F2F8FC",
"riple-color":"rgba(0, 0, 0, .12)"
"riple-color":"rgba(0, 0, 0, .12)",
"selected-color":"rgba(255, 255, 255, .12)"
},
"dark":{
"color-primary-100": "#DBF7DD",
Expand Down Expand Up @@ -169,6 +170,7 @@
"color-indicator-bar":"#69ffb2",
"skeleton-background-color":"$background-basic-color-4",
"skeleton-hightlight-color":"$background-basic-color-3",
"riple-color":"rgba(255, 255, 255, .12)"
"riple-color":"rgba(255, 255, 255, .12)",
"selected-color":"rgba(0, 0, 0, .12)"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-background-fetch@9.2.2": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-cellular@3.2.0": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
Expand Down Expand Up @@ -335,6 +341,12 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-task-manager@9.2.2": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-updates@0.8.0": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
Expand Down Expand Up @@ -454,10 +466,10 @@
"licenseUrl": "https://github.com/iou90/react-native-autoheight-webview/raw/master/LICENSE",
"parents": "portal-native"
},
"react-native-background-actions@2.6.2": {
"licenses": "MIT",
"repository": "https://github.com/Rapsssito/react-native-background-actions",
"licenseUrl": "https://github.com/Rapsssito/react-native-background-actions/raw/master/LICENSE",
"react-native-background-downloader@2.3.4": {
"licenses": "Apache-2.0",
"repository": "https://github.com/EkoLabs/react-native-background-downloader",
"licenseUrl": "https://github.com/EkoLabs/react-native-background-downloader/raw/master/LICENSE",
"parents": "portal-native"
},
"react-native-biometrics@2.1.4": {
Expand All @@ -470,6 +482,12 @@
"licenses": "UNKNOWN",
"parents": "portal-native"
},
"react-native-draggable-flatlist@2.6.2": {
"licenses": "MIT",
"repository": "https://github.com/computerjazz/react-native-draggable-flatlist",
"licenseUrl": "https://github.com/computerjazz/react-native-draggable-flatlist/raw/master/LICENSE.txt",
"parents": "portal-native"
},
"react-native-dropdownalert@4.3.0": {
"licenses": "MIT",
"repository": "https://github.com/testshallpass/react-native-dropdownalert",
Expand Down Expand Up @@ -578,7 +596,7 @@
"licenseUrl": "https://github.com/satya164/react-native-tab-view/raw/master/LICENSE.md",
"parents": "portal-native"
},
"react-native-track-player@1.2.7": {
"react-native-track-player@2.0.1": {
"licenses": "Apache-2.0",
"repository": "https://github.com/react-native-kit/react-native-track-player",
"licenseUrl": "https://github.com/react-native-kit/react-native-track-player/raw/master/LICENSE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,25 @@
"follower":"pengikut",
"following":"mengikuti",
"unfollow":"batal mengikuti",
"random_number":{
"animation":"Animasi",
"animation_help":"Aktifkan animasi saat mengacak angka",
"min":"Angka Minimum",
"max":"Angka Maksimum",
"specify":{
"max":"Harap tentukan angka maksimum",
"min":"Harap tentukan angka minimum"
},
"less":{
"max":"Angka maksimum harus lebih kecil dari %{number}",
"min":"Angka minimum harus lebih kecil dari %{number}"
},
"than":{
"max":"Angka maksimum harus lebih besar dari angka minimum",
"min":"Angka minimum harus lebih kecil dari angka maksimum"
},
"same":"Angka minimum dan maksimum tidak boleh sama"
},
"settings":{
"account":{
"private":"Setel profil ke pribadi",
Expand Down
Binary file not shown.
Loading

0 comments on commit 82354fa

Please sign in to comment.