-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from AmityCo/native-sprint
Release/v4.0.0-beta-13
- Loading branch information
Showing
53 changed files
with
1,029 additions
and
143 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* begin_sample_code | ||
gist_id: 1c885a98ffdc94f5f3336e477ffce9d6 | ||
filename: AmityCommunitySearchResultComponent.tsx | ||
asc_page: https://docs.amity.co/amity-uikit/uikit-v4-beta | ||
description: AmityCommunitySearchResultComponent | ||
*/ | ||
import { | ||
AmityCommunitySearchResultComponent, | ||
AmityUiKitProvider, | ||
} from 'amity-react-native-social-ui-kit'; | ||
import React from 'react'; | ||
import config from '../../uikit.config.json'; | ||
import { TabName } from '../v4/enum'; | ||
<AmityUiKitProvider | ||
configs={config} //put your customized config json object | ||
apiKey="API_KEY" | ||
apiRegion="API_REGION" | ||
userId="userId" | ||
displayName="displayName" | ||
apiEndpoint="https://api.{API_REGION}.amity.co" | ||
> | ||
<AmityCommunitySearchResultComponent | ||
searchResult={[{}] as (Amity.Community & Amity.User)[]} | ||
onNextPage={() => {}} | ||
searchType={TabName.Communities} | ||
/> | ||
</AmityUiKitProvider>; | ||
/* end_sample_code */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* begin_sample_code | ||
gist_id: a5976a141516a6fe6e561344a8656286 | ||
filename: AmityCreatePostMenuComponent.tsx | ||
asc_page: https://docs.amity.co/amity-uikit/uikit-v4-beta | ||
description: AmityCreatePostMenuComponent | ||
*/ | ||
import { | ||
AmityCreatePostMenuComponent, | ||
AmityUiKitProvider, | ||
} from 'amity-react-native-social-ui-kit'; | ||
import React from 'react'; | ||
import config from '../../uikit.config.json'; | ||
<AmityUiKitProvider | ||
configs={config} //put your customized config json object | ||
apiKey="API_KEY" | ||
apiRegion="API_REGION" | ||
userId="userId" | ||
displayName="displayName" | ||
apiEndpoint="https://api.{API_REGION}.amity.co" | ||
behaviour={{ | ||
AmityCreatePostMenuComponentBehavior: { | ||
goToSelectStoryTargetPage: () => {}, | ||
goToSelectPostTargetPage: ({ postType }) => console.log(postType), | ||
}, | ||
}} | ||
> | ||
<AmityCreatePostMenuComponent /> | ||
</AmityUiKitProvider>; | ||
/* end_sample_code */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* begin_sample_code | ||
gist_id: 193a12ef8f7aea1032e8884898ed2193 | ||
filename: AmityDetailedMediaAttachmentComponent.tsx | ||
asc_page: https://docs.amity.co/amity-uikit/uikit-v4-beta | ||
description: AmityDetailedMediaAttachmentComponent | ||
*/ | ||
import { | ||
AmityDetailedMediaAttachmentComponent, | ||
AmityUiKitProvider, | ||
mediaAttachment, | ||
} from 'amity-react-native-social-ui-kit'; | ||
import React from 'react'; | ||
import config from '../../uikit.config.json'; | ||
<AmityUiKitProvider | ||
configs={config} //put your customized config json object | ||
apiKey="API_KEY" | ||
apiRegion="API_REGION" | ||
userId="userId" | ||
displayName="displayName" | ||
apiEndpoint="https://api.{API_REGION}.amity.co" | ||
> | ||
<AmityDetailedMediaAttachmentComponent | ||
onPressCamera={() => {}} | ||
onPressImage={() => {}} | ||
onPressVideo={() => {}} | ||
chosenMediaType={mediaAttachment.image} | ||
/> | ||
</AmityUiKitProvider>; | ||
/* end_sample_code */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* begin_sample_code | ||
gist_id: 176852a181d7574c61a8d5260e7e8810 | ||
filename: AmityEmptyNewsFeedComponent.tsx | ||
asc_page: https://docs.amity.co/amity-uikit/uikit-v4-beta | ||
description: AmityEmptyNewsFeedComponent | ||
*/ | ||
import { | ||
AmityEmptyNewsFeedComponent, | ||
AmityUiKitProvider, | ||
} from 'amity-react-native-social-ui-kit'; | ||
import React from 'react'; | ||
import config from '../../uikit.config.json'; | ||
<AmityUiKitProvider | ||
configs={config} //put your customized config json object | ||
apiKey="API_KEY" | ||
apiRegion="API_REGION" | ||
userId="userId" | ||
displayName="displayName" | ||
apiEndpoint="https://api.{API_REGION}.amity.co" | ||
> | ||
<AmityEmptyNewsFeedComponent /> | ||
</AmityUiKitProvider>; | ||
/* end_sample_code */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* begin_sample_code | ||
gist_id: 3ec04da66a931c826f471ef50a90c7b9 | ||
filename: AmityGlobalFeedComponent.tsx | ||
asc_page: https://docs.amity.co/amity-uikit/uikit-v4-beta | ||
description: AmityGlobalFeedComponent | ||
*/ | ||
import { | ||
AmityGlobalFeedComponent, | ||
AmityUiKitProvider, | ||
} from 'amity-react-native-social-ui-kit'; | ||
import React from 'react'; | ||
import config from '../../uikit.config.json'; | ||
<AmityUiKitProvider | ||
configs={config} //put your customized config json object | ||
apiKey="API_KEY" | ||
apiRegion="API_REGION" | ||
userId="userId" | ||
displayName="displayName" | ||
apiEndpoint="https://api.{API_REGION}.amity.co" | ||
behaviour={{ | ||
AmityGlobalFeedComponentBehavior: { | ||
goToPostDetailPage: (postId: string) => { | ||
console.log(postId); | ||
}, | ||
}, | ||
}} | ||
> | ||
<AmityGlobalFeedComponent /> | ||
</AmityUiKitProvider>; | ||
/* end_sample_code */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* begin_sample_code | ||
gist_id: 60de42520b795efd3bd1ec26672e27c4 | ||
filename: AmityMediaAttachmentComponent.tsx | ||
asc_page: https://docs.amity.co/amity-uikit/uikit-v4-beta | ||
description: AmityMediaAttachmentComponent | ||
*/ | ||
import { | ||
AmityMediaAttachmentComponent, | ||
AmityUiKitProvider, | ||
mediaAttachment, | ||
} from 'amity-react-native-social-ui-kit'; | ||
import React from 'react'; | ||
import config from '../../uikit.config.json'; | ||
<AmityUiKitProvider | ||
configs={config} //put your customized config json object | ||
apiKey="API_KEY" | ||
apiRegion="API_REGION" | ||
userId="userId" | ||
displayName="displayName" | ||
apiEndpoint="https://api.{API_REGION}.amity.co" | ||
> | ||
<AmityMediaAttachmentComponent | ||
onPressCamera={() => {}} | ||
onPressImage={() => {}} | ||
onPressVideo={() => {}} | ||
chosenMediaType={mediaAttachment.image} | ||
/> | ||
</AmityUiKitProvider>; | ||
/* end_sample_code */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* begin_sample_code | ||
gist_id: 106d5ba6c2ce0a1125a4d7fd9019489f | ||
filename: AmityMyCommunitiesComponent.tsx | ||
asc_page: https://docs.amity.co/amity-uikit/uikit-v4-beta | ||
description: AmityMyCommunitiesComponent | ||
*/ | ||
import { | ||
AmityMyCommunitiesComponent, | ||
AmityUiKitProvider, | ||
} from 'amity-react-native-social-ui-kit'; | ||
import React from 'react'; | ||
import config from '../../uikit.config.json'; | ||
<AmityUiKitProvider | ||
configs={config} //put your customized config json object | ||
apiKey="API_KEY" | ||
apiRegion="API_REGION" | ||
userId="userId" | ||
displayName="displayName" | ||
apiEndpoint="https://api.{API_REGION}.amity.co" | ||
behaviour={{ | ||
AmityMyCommunitiesComponentBehaviour: { | ||
onPressCommunity: ({ communityId, communityName }) => { | ||
console.log(communityId, communityName); | ||
}, | ||
}, | ||
}} | ||
> | ||
<AmityMyCommunitiesComponent /> | ||
</AmityUiKitProvider>; | ||
/* end_sample_code */ |
Oops, something went wrong.