Skip to content

Commit 9264071

Browse files
author
Nazar Sydiaha
committed
feat: add stopReactNative usage example
1 parent 04b875c commit 9264071

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

example/swift/App.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,19 @@ struct ContentView: View {
2424
.font(.title)
2525
.bold()
2626
.padding()
27+
.multilineTextAlignment(.center)
2728

2829
NavigationLink("Push React Native Screen") {
2930
ReactNativeView(moduleName: "ReactNative")
3031
.navigationBarHidden(true)
3132
}
33+
34+
Button("Stop React Native") {
35+
ReactNativeBrownfield.shared.stopReactNative()
36+
}
37+
.buttonStyle(PlainButtonStyle())
38+
.padding(.top)
39+
.foregroundColor(.red)
3240
}
3341
}
3442
}

0 commit comments

Comments
 (0)