gen02-dev / web3-meme-app-react-native

3 stars 0 forks source link

Hello boss #1

Open jacksonwalker165 opened 2 years ago

jacksonwalker165 commented 2 years ago

Please I beg you help me with this boilerplate....thank you so much for your help in react native with moralis

gen02-dev commented 2 years ago

Hi @jacksonwalker165 I just uploaded it. I apologize for not being able to upload it sooner. The base code of this runs with react-native expo and is now deprecated with the current version of Ethereum React Native Boilerplate (https://github.com/ethereum-boilerplate/ethereum-react-native-boilerplate). I suggest you get the important files here for you project and use the latest version of the boilerplate since we will not maintain expo related dependencies anymore.

gen02-dev commented 2 years ago

I just added the cloud function.

jacksonwalker165 commented 2 years ago

import { ParsedUrlQuery } from 'querystring';

type Props = { post: PostData }

interface Params extends ParsedUrlQuery { id: string, }

export const getStaticProps: GetStaticProps<Props, Params> = async (context) => { const params = context.params! // ! is a non-null assertion const post = await getPost(params.id) return { props: { post } } }