Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo Support #19

Open
Acetyld opened this issue Feb 27, 2024 · 17 comments
Open

Expo Support #19

Acetyld opened this issue Feb 27, 2024 · 17 comments
Assignees
Labels
enhancement New feature or request

Comments

@Acetyld
Copy link
Contributor

Acetyld commented Feb 27, 2024

Hey man!

In the past we talked about this project, and how good it is =)
Currently we are running a development expo project, and we tried to use burnt, but it was missing stuff ur library has, such as globaly config and ability to change colors etc..

Is this something u are willing to look into? To add expo support?

@baronha
Copy link
Owner

baronha commented Feb 27, 2024

Hey man!

In the past we talked about this project, and how good it is =) Currently we are running a development expo project, and we tried to use burnt, but it was missing stuff ur library has, such as globaly config and ability to change colors etc..

Is this something u are willing to look into? To add expo support?

Maybe I should reconsider this soon!! I'm seeing the growth of Expo. Wait for me. You can also develop it based on your knowledge through PR.

@baronha baronha self-assigned this Feb 27, 2024
@baronha baronha added the enhancement New feature or request label Feb 27, 2024
@Acetyld
Copy link
Contributor Author

Acetyld commented Feb 29, 2024

image

Actually, it just works on Expo lol (not in Expo Go ofcourse) but a Development Build works fine 💪🏻

Reproduction Repo
https://github.com/Acetyld/ting-expo

@baronha
Copy link
Owner

baronha commented Feb 29, 2024

image

Actually, it just works on Expo lol (not in Expo Go ofcourse) but a Development Build works fine 💪🏻

Reproduction Repo https://github.com/Acetyld/ting-expo

ahhaa. awesome!!!
I've never used expo so I don't know exactly what the mechanism is. But it was amazing.

@Acetyld
Copy link
Contributor Author

Acetyld commented Feb 29, 2024

Alright, i take above back lol

  1 | #import "Ting.h"
  2 | 
> 3 | #import <ting-Swift.h>
    |         ^ 'ting-Swift.h' file not found
  4 | 
  5 | @implementation Ting
  6 | 

In a real project its not auto linking the swift file ;p, pretty sure it is because of "useFramework! > static"
This is needed for react-native-firebase.

I think best solution is to rewrite @baronha/ting to Expo Native Modules (its btw so much easier to write native modules in here lol with plain Kotlin/Swift) You should take a look into it, i made: https://github.com/Acetyld/expo-foreground-actions with it =)

And for your info Expo is not what is was, its now fully fletched without limits

@baronha
Copy link
Owner

baronha commented Feb 29, 2024

Alright, i take above back lol

  1 | #import "Ting.h"
  2 | 
> 3 | #import <ting-Swift.h>
    |         ^ 'ting-Swift.h' file not found
  4 | 
  5 | @implementation Ting
  6 | 

In a real project its not auto linking the swift file ;p

I also encountered the same problem when migrating to new arch in other projects (multiple picker ...)

@Acetyld
Copy link
Contributor Author

Acetyld commented Feb 29, 2024

Alright, i take above back lol

  1 | #import "Ting.h"
  2 | 
> 3 | #import <ting-Swift.h>
    |         ^ 'ting-Swift.h' file not found
  4 | 
  5 | @implementation Ting
  6 | 

In a real project its not auto linking the swift file ;p

I also encountered the same problem when migrating to new arch in other projects (multiple picker ...)

See above updated comment

@KeaganStevens
Copy link

I would really like this to work on Expo dev build.

@Acetyld
Copy link
Contributor Author

Acetyld commented Mar 27, 2024

I would really like this to work on Expo dev build.

I would say, go for it =) I think burnt already has a good base, but it is missing features that Ting has. I would suggest creating the module with: https://docs.expo.dev/modules/native-module-tutorial/ , but thats up to u =)

@KeaganStevens
Copy link

I would say, go for it =) I think burnt already has a good base, but it is missing features that Ting has. I would suggest creating the module with: https://docs.expo.dev/modules/native-module-tutorial/ , but thats up to u =)

Unfortunately I do not have a MacOS device and have no experience with Swift making this very difficult to accomplish. :(

@a-eid
Copy link

a-eid commented Apr 4, 2024

the package seem to be working with expo just fine, you have to build your own development client to use it. as it won't work in expo go.

@baronha
Copy link
Owner

baronha commented Apr 4, 2024

Does anyone here have experience building plugins for expo? It would be helpful if you guys had a PR for that.

@a-eid
Copy link

a-eid commented Apr 4, 2024

@baronha the package doesn't need a plugin, it works out of the box with expo.

@Acetyld
Copy link
Contributor Author

Acetyld commented Apr 4, 2024

@a-eid problem is the "useFramework! > static"

@a-eid
Copy link

a-eid commented Apr 4, 2024

@Acetyld thank you for the clarification, you can use expo-build-properties to do that. it's also required by react-native-firebase packages.

[
        "expo-build-properties",
        {
          "ios": {
            "useFrameworks": "static"
          }
        }
 ]

Edit

this no longer seem to be working for me.

@Acetyld
Copy link
Contributor Author

Acetyld commented Apr 4, 2024 via email

@a-eid
Copy link

a-eid commented May 1, 2024

this solved the issue for me.

diff --git a/node_modules/@baronha/ting/ios/Ting.mm b/node_modules/@baronha/ting/ios/Ting.mm
index 2ae7778..22389c0 100644
--- a/node_modules/@baronha/ting/ios/Ting.mm
+++ b/node_modules/@baronha/ting/ios/Ting.mm
@@ -1,6 +1,7 @@
 #import "Ting.h"
 
-#import <ting-Swift.h>
+#import <Ting/Ting-Swift.h>
+
 
 @implementation Ting

@stichingsd-vitrion
Copy link

this solved the issue for me.

diff --git a/node_modules/@baronha/ting/ios/Ting.mm b/node_modules/@baronha/ting/ios/Ting.mm
index 2ae7778..22389c0 100644
--- a/node_modules/@baronha/ting/ios/Ting.mm
+++ b/node_modules/@baronha/ting/ios/Ting.mm
@@ -1,6 +1,7 @@
 #import "Ting.h"
 
-#import <ting-Swift.h>
+#import <Ting/Ting-Swift.h>
+
 
 @implementation Ting

@baronha could you look into this, if it is possible to fix this without breaking rn cli projects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants