Open jacksonwalker165 opened 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.
I just added the cloud function.
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 } } }
Please I beg you help me with this boilerplate....thank you so much for your help in react native with moralis