@@ -154,10 +154,12 @@ expo init supabaseReactNative
154
154
cd supabaseReactNative
155
155
```
156
156
157
- Then let's install the only additional dependency : [ supabase-js] ( https://github.com/supabase/supabase-js )
157
+ Then let's install the additional dependencies : [ supabase-js] ( https://github.com/supabase/supabase-js )
158
158
159
159
``` bash
160
160
yarn add @supabase/supabase-js
161
+ yarn add react-native-elements
162
+ yarn add react-native-safe-area-context
161
163
```
162
164
163
165
Now let's create a helper file to initialize the Supabase client.
@@ -182,7 +184,7 @@ We'll use Magic Links, so users can sign in with their email without using passw
182
184
``` jsx title="components/Auth.js"
183
185
import React , {useState } from ' react'
184
186
import {Alert , StyleSheet , View } from ' react-native'
185
- import {supabaseClient } from ' ../lib/initSupabase '
187
+ import {supabase } from ' ../lib/supabase '
186
188
import {Button , Input } from ' react-native-elements'
187
189
188
190
export default function Auth () {
@@ -267,7 +269,7 @@ Let's create a new component for that called `Account.js`.
267
269
268
270
``` jsx title="components/Account.js"
269
271
import { useState , useEffect } from ' react'
270
- import { supabase } from ' ../utils/supabaseClient '
272
+ import { supabase } from ' ../utils/supabase '
271
273
import {StyleSheet , View } from ' react-native'
272
274
273
275
import {Button , Input } from ' react-native-elements'
@@ -386,10 +388,10 @@ Now that we have all the components in place, let's update `app.js`:
386
388
387
389
``` jsx title="app.js"
388
390
import { useState , useEffect } from ' react'
389
- import { supabase } from ' ./lib/supabaseClient '
391
+ import { supabase } from ' ./lib/supabase '
390
392
import Auth from ' ./components/Auth'
391
393
import Account from ' ./components/Account'
392
- import View from ' react-native'
394
+ import { View } from ' react-native'
393
395
394
396
export default function App () {
395
397
const [session , setSession ] = useState (null )
0 commit comments